diff --git a/liba/Makefile b/liba/Makefile index 3fa08a42e..427b1b432 100644 --- a/liba/Makefile +++ b/liba/Makefile @@ -2,5 +2,5 @@ SFLAGS += -Iliba/include liba/src/external/sqlite/mem5.o: CFLAGS += -w -objs += $(addprefix liba/src/, assert.o errno.o malloc.o memcpy.o memset.o strcmp.o strlen.o external/sqlite/mem5.o) +objs += $(addprefix liba/src/, assert.o errno.o malloc.o memcpy.o memset.o powf.o strcmp.o strlen.o external/sqlite/mem5.o) tests += $(addprefix liba/test/, stdint.c) diff --git a/liba/include/math.h b/liba/include/math.h new file mode 100644 index 000000000..83aa8a33e --- /dev/null +++ b/liba/include/math.h @@ -0,0 +1,12 @@ +#ifndef LIBA_ASSERT_H +#define LIBA_ASSERT_H + +#include "private/macros.h" + +LIBA_BEGIN_DECLS + +float powf(float x, float y); + +LIBA_END_DECLS + +#endif diff --git a/liba/src/powf.c b/liba/src/powf.c new file mode 100644 index 000000000..b3b235fe9 --- /dev/null +++ b/liba/src/powf.c @@ -0,0 +1,3 @@ +float powf(float x, float y) { + return 1.0f; // TODO: do this for real +}