cos2000v2/lib/math.c

8 lines
77 B
C
Raw Normal View History

2007-04-02 16:34:32 +02:00
#include "types.h"
u32 abs(int x)
{
if (x<0) x=-x;
return (u32)x;
}