summaryrefslogtreecommitdiffstats
path: root/include/utils.h
blob: e4feb9ae0dbedb059686116d0c617b7226937f50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef PROJECT_UTILS_H
#define PROJECT_UTILS_H

#include <stdint.h>

typedef struct uuid_s {
    char bytes[16];
} uuid_t;

int cmp_uuid(uuid_t *first, uuid_t *second);

typedef int fpi1_t;

fpi1_t add(fpi1_t a, fpi1_t b);
fpi1_t sub(fpi1_t a, fpi1_t b);
fpi1_t mul(fpi1_t a, fpi1_t b);
fpi1_t div(fpi1_t a, fpi1_t b);

#endif /* PROJECT_UTILS_H */