blob: daea864fe3ce4418e13afd718319e85a999e2825 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef PROJECT_UTILS_H
#define PROJECT_UTILS_H
#include <stdint.h>
typedef struct uuid_s {
uint64_t low;
uint64_t hi;
} uuid_t;
int cmp_uuid(uuid_t *first, uuid_t *second);
/* Prints uuid in cannonical format.
*/
void uuid_to_str(uuid_t *to_print, char *buf);
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 */
|