mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Implemented math.h
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include <math.h>
|
||||
|
||||
int abs(int n) {
|
||||
return (n < 0) ? -n : n;
|
||||
}
|
||||
|
||||
double fabs(double x) {
|
||||
return (x < 0.0) ? -x : x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user