Implements BrFloat* functions. (#15)
This commit is contained in:
parent
91ddd2ff31
commit
cee44698b2
|
|
@ -1,29 +1,35 @@
|
|||
#include "brmath.h"
|
||||
#include <math.h>
|
||||
|
||||
char rscid[46];
|
||||
|
||||
// Offset: 13
|
||||
// Size: 61
|
||||
float BrFloatFloor(float f) {
|
||||
return floorf(f);
|
||||
}
|
||||
|
||||
// Offset: 86
|
||||
// Size: 61
|
||||
float BrFloatCeil(float f) {
|
||||
return ceilf(f);
|
||||
}
|
||||
|
||||
// Offset: 159
|
||||
// Size: 61
|
||||
float BrFloatSqrt(float f) {
|
||||
return sqrtf(f);
|
||||
}
|
||||
|
||||
// Offset: 231
|
||||
// Size: 70
|
||||
float BrFloatPow(float a, float b) {
|
||||
return powf(a, b);
|
||||
}
|
||||
|
||||
// Offset: 314
|
||||
// Size: 70
|
||||
float BrFloatAtan2(float x, float y) {
|
||||
return atan2f(x, y);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ INC_DIRS := $(shell find $(SRC_DIR) -type d) $(BR_SRC_DIR)
|
|||
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||
|
||||
CFLAGS ?= $(INC_FLAGS) -Wno-return-type -Wno-missing-declarations -Werror=implicit-function-declaration
|
||||
LDFLAGS ?= -lm
|
||||
|
||||
.PHONY: clean build test
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ INC_DIRS := $(shell find $(SRC_DIR) -type d) $(BR_SRC_DIR) $(DR_SRC_DIR)
|
|||
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||
|
||||
CFLAGS ?= $(INC_FLAGS)
|
||||
LDFLAGS ?= -lm
|
||||
|
||||
.PHONY: clean build run
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue