twn_util_c.h: internal profiling api

This commit is contained in:
veclavtalica
2024-11-04 16:04:02 +03:00
parent 4b0d584b7e
commit 26a2bf293f
2 changed files with 27 additions and 0 deletions

View File

@ -23,6 +23,9 @@ _Noreturn void die_abruptly(void);
/* note: you must free the returned string */
char *expand_asterisk(const char *mask, const char *to);
void profile_start(char profile[const static 1]);
void profile_end(char profile[const static 1]);
/* http://www.azillionmonkeys.com/qed/sqroot.html */
static inline float fast_sqrt(float x)
{