/* Minimal subset of stdlib, none of which have to be actually implemented, even memory mnagement. */ #ifndef COM_STD_H #define COM_STD_H #include #include /* Note: Freeing is done by passing 0 size to pointer. */ extern void *com_std_alloc(void *ptr, size_t size); /* Note: Functions listed below are only available for dev builds. */ /* Trigonometry functions are for reference testing of our own fixed point * implementations. Do not use otherwise. */ extern void com_std_assert(bool holds); extern void com_std_printf(char const *fmt, ...); extern double com_std_sqrt(double v); extern double com_std_fabs(double v); extern double com_std_sin(double v); extern double com_std_cos(double v); #endif