feat: ensemble de fonctions permettant l'utilisation de fonctions mathématiques

This commit is contained in:
Nicolas Hordé 2007-04-02 14:05:57 +00:00
parent 816dc06152
commit 8bebcb0ccc
1 changed files with 7 additions and 0 deletions

7
lib/math.c Normal file
View File

@ -0,0 +1,7 @@
#include "types.h"
u32 abs(int x)
{
if (x<0) x=-x;
return (u32)x;
}