mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
9 lines
172 B
C
9 lines
172 B
C
#ifndef MATH_H
|
|
#define MATH_H
|
|
|
|
#define abs(x) ( (x) > 0 ? (x) : -(x) )
|
|
#define sign(x) ( (x) == 0 ? 0 : ((x) < 0 ? -1 : 1 ) )
|
|
#define round(x) ( (int)((x) + 0.5) )
|
|
|
|
#endif
|