mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
11 lines
126 B
C
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;
|
|
}
|
|
|