blob: 95b553d371eb88ea7ad4094380e40db8ad717684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef USURPATION_UTILS_H
#define USURPATION_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 /* USURPATION_UTILS_H */
|