BSB Developer Docs
Loading...
Searching...
No Matches
float_tools.h
1
#pragma once
2
3
#ifdef __cplusplus
4
extern
"C"
{
5
#endif
6
7
#define CEILING_MULTIPLE_OF(x, n) \
8
({ \
9
__typeof__(x) _x = (x); \
10
__typeof__(n) _n = (n); \
11
((_x + _n - 1) / _n) * _n; \
12
})
13
14
#include <stdbool.h>
15
22
bool
float_is_equal(
float
a,
float
b);
23
24
#ifdef __cplusplus
25
}
26
#endif
lib
toolbox
float_tools.h
Generated by
1.12.0