headers and comments for module02

This commit is contained in:
hugo LAMY
2025-03-08 22:41:36 +01:00
parent d91524b14a
commit e63951591c
29 changed files with 592 additions and 518 deletions

View File

@@ -11,5 +11,6 @@
// mathematics
#define PERCENT(percent, total) (((float)percent / 100) * total)
#define DIV_ROUND_CLOSEST(n, d) ((((n) < 0) == ((d) < 0)) ? (((n) + (d)/2)/(d)) : (((n) - (d)/2)/(d)))
#endif // UTILS_H