compat.h File Reference
#include <locale.h>
#include <libintl.h>
#include <stdatomic.h>
#include <endian.h>
#include <cstdint>
#include <sys/types.h>
Go to the source code of this file.
Define Documentation
| #define _ |
( |
STRING |
|
) |
gettext(STRING) |
| #define __STDC_CONSTANT_MACROS |
| #define __STDC_LIMIT_MACROS |
| #define ATOMIC_DECREMENT |
( |
x |
|
) |
x.fetch_sub(1) |
| #define ATOMIC_INCREMENT |
( |
x |
|
) |
x.fetch_add(1) |
| #define ATOMIC_INT32 |
( |
x |
|
) |
std::atomic<int32_t> x |
Function Documentation
| void aligned_free |
( |
void * |
mem |
) |
|
| int aligned_malloc |
( |
void ** |
memptr, |
|
|
size_t |
alignment, |
|
|
size_t |
size | |
|
) |
| | |
| std::uint64_t compat_get_current_time_ms |
( |
|
) |
|
| std::uint64_t compat_get_current_time_us |
( |
|
) |
|
| std::uint64_t compat_get_thread_cputime_us |
( |
|
) |
|
| std::uint64_t compat_msectiming |
( |
|
) |
|
| void compat_msleep |
( |
unsigned int |
time |
) |
|
| double dmax |
( |
double |
a, |
|
|
double |
b | |
|
) |
| | [inline] |
| double dmin |
( |
double |
a, |
|
|
double |
b | |
|
) |
| | [inline] |
| int imax |
( |
int |
a, |
|
|
int |
b | |
|
) |
| | [inline] |
| int imin |
( |
int |
a, |
|
|
int |
b | |
|
) |
| | [inline] |
| int kill_child |
( |
pid_t |
p |
) |
|