mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-12-28 15:44:33 +00:00
Fix wrong name for square root function
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user