Add a (fake) implementation of powf in liba

Change-Id: I14af6937fecfbe90ab053594e1269fcbc3681b1c
This commit is contained in:
Romain Goyet
2016-03-18 16:52:02 +01:00
parent b5b11e0120
commit fd0c6eaba3
3 changed files with 16 additions and 1 deletions

View File

@@ -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
View 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
View File

@@ -0,0 +1,3 @@
float powf(float x, float y) {
return 1.0f; // TODO: do this for real
}