Berry failed port attempt leftovers :(
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m9s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m9s
This commit is contained in:
4
libmath/.gitignore
vendored
Normal file
4
libmath/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.o
|
||||
*.json
|
||||
docs/
|
||||
.cache/
|
||||
5
libmath/Makefile
Normal file
5
libmath/Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
include ../make/ufuncs.mk
|
||||
|
||||
libname := libmath
|
||||
|
||||
include ../make/lib.mk
|
||||
1
libmath/build/.gitignore
vendored
Normal file
1
libmath/build/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.a
|
||||
5
libmath/math.c
Normal file
5
libmath/math.c
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <math.h>
|
||||
|
||||
double fmod (double a, double b) { return a - ((double)((long long)(a / b))) * b; }
|
||||
|
||||
float fmodf (float a, float b) { return a - ((float)((long)(a / b))) * b; }
|
||||
8
libmath/math.h
Normal file
8
libmath/math.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef _LIBMATH_MATH_H
|
||||
#define _LIBMATH_MATH_H
|
||||
|
||||
double fmod (double a, double b);
|
||||
|
||||
float fmodf (float a, float b);
|
||||
|
||||
#endif // _LIBMATH_MATH_H
|
||||
3
libmath/src.mk
Normal file
3
libmath/src.mk
Normal file
@@ -0,0 +1,3 @@
|
||||
c += math.c
|
||||
|
||||
o += math.o
|
||||
Reference in New Issue
Block a user