cos2000v2/lib/math.c

8 lines
77 B
C

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