Files
kern/libc/math/abs.c
T
2024-10-24 12:00:36 +02:00

11 lines
126 B
C

#include <math.h>
int abs(int n) {
return (n < 0) ? -n : n;
}
double fabs(double x) {
return (x < 0.0) ? -x : x;
}