diff --git a/HandmadeMath.h b/HandmadeMath.h index 78d2d92..a966f9f 100644 --- a/HandmadeMath.h +++ b/HandmadeMath.h @@ -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); diff --git a/test/Makefile b/test/Makefile index 972ebcd..70353ee 100644 --- a/test/Makefile +++ b/test/Makefile @@ -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