mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Add a (fake) implementation of powf in liba
Change-Id: I14af6937fecfbe90ab053594e1269fcbc3681b1c
This commit is contained in:
@@ -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)
|
||||
|
||||
12
liba/include/math.h
Normal file
12
liba/include/math.h
Normal file
@@ -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
|
||||
3
liba/src/powf.c
Normal file
3
liba/src/powf.c
Normal file
@@ -0,0 +1,3 @@
|
||||
float powf(float x, float y) {
|
||||
return 1.0f; // TODO: do this for real
|
||||
}
|
||||
Reference in New Issue
Block a user