Fix wrong name for square root function

This commit is contained in:
Ben Visness
2017-06-09 10:43:11 -05:00
parent a9972e71da
commit 364569abe9
2 changed files with 2 additions and 2 deletions

View File

@@ -774,7 +774,7 @@ HMM_RSquareRootF(float Value)
float Result = 0.0f;
#ifdef HANDMADE_MATH_NO_SSE
Result = 1.0f/HMM_SqrtF(Value);
Result = 1.0f/HMM_SquareRootF(Value);
#else
__m128 In = _mm_set_ss(Value);
__m128 Out = _mm_rsqrt_ss(In);

View File

@@ -5,7 +5,7 @@ CXXFLAGS += -g -Wall -Wextra -pthread -Wno-missing-braces -Wno-missing-field-ini
all: c c_no_sse cpp cpp_no_sse
clean:
rm -f hmm_test_c hmm_test_cpp *.o
rm -f hmm_test_c hmm_test_cpp hmm_test_c_no_sse hmm_test_cpp_no_sse *.o
c: $(ROOT_DIR)/test/HandmadeMath.c test_impl
$(CC) $(CPPFLAGS) $(CXXFLAGS) -std=c99 -c $(ROOT_DIR)/test/HandmadeMath.c $(ROOT_DIR)/test/hmm_test.c -lm