Extended Array Library

This commit is contained in:
2025-04-04 01:22:48 -05:00
parent c23cdb9e1e
commit 6c08c28ae5
5 changed files with 125 additions and 10 deletions

18
libkeke_utils.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef LIBKEKE_UTILS
#define LIBKEKE_UTILS
#include <stddef.h>
#define BOOL_PRETTY(b) (b ? "True" : "False")
static void keke_swap(void *a, void *b, size_t size) {
char *aa = a;
char *bb = b;
for(size_t i = 0; i < size; i++) {
aa[i] ^= bb[i];
bb[i] ^= aa[i];
aa[i] ^= bb[i];
}
}
#endif