Berry failed port attempt leftovers :(
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m9s

This commit is contained in:
2026-03-08 23:35:41 +01:00
parent ed4db21cf2
commit bea4ddd2c8
22 changed files with 218 additions and 26 deletions

4
libmath/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
*.o
*.json
docs/
.cache/

5
libmath/Makefile Normal file
View File

@@ -0,0 +1,5 @@
include ../make/ufuncs.mk
libname := libmath
include ../make/lib.mk

1
libmath/build/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.a

5
libmath/math.c Normal file
View 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
View 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
View File

@@ -0,0 +1,3 @@
c += math.c
o += math.o