blob: c769917ef0c9bc1521e0d3c879e18f23787811d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#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);
/**
* Fixed point number with one decimal digit of precision.
*/
typedef int fpi1_t;
fpi1_t fpi1_add(fpi1_t a, fpi1_t b);
fpi1_t fpi1_sub(fpi1_t a, fpi1_t b);
fpi1_t fpi1_mul(fpi1_t a, fpi1_t b);
fpi1_t fpi1_div(fpi1_t a, fpi1_t b);
#endif /* PROJECT_UTILS_H */
|