From 8bebcb0cccdb7a0b60b2ea6eae16ff39987f71a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Mon, 2 Apr 2007 14:05:57 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20ensemble=20de=20fonctions=20permettant?= =?UTF-8?q?=20l'utilisation=20de=20fonctions=20math=C3=A9matiques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/math.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/math.c diff --git a/lib/math.c b/lib/math.c new file mode 100644 index 0000000..376c1f5 --- /dev/null +++ b/lib/math.c @@ -0,0 +1,7 @@ +#include "types.h" + +u32 abs(int x) +{ +if (x<0) x=-x; +return (u32)x; +}