Get basics to compile & work in unix

This commit is contained in:
2017-06-21 14:10:53 +10:00
parent b1e7fdc264
commit 341388bb70
4 changed files with 114 additions and 104 deletions
+4 -1
View File
@@ -1,3 +1,5 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpsabi"
/*
HandmadeMath.h v1.1.2
@@ -777,7 +779,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);
@@ -2657,3 +2659,4 @@ operator*=(hmm_quaternion &Left, float Right)
#endif /* HANDMADE_MATH_CPP_MODE */
#endif /* HANDMADE_MATH_IMPLEMENTATION */
#pragma GCC diagnostic pop