From a99a64dc03a69db66173da82e643d824a1b76e34 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 4 Feb 2016 21:49:54 +1100 Subject: [PATCH] [Glide64] Fix up missing log message --- Source/Glide64/3dmath.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/Glide64/3dmath.cpp b/Source/Glide64/3dmath.cpp index 598bd5217..e6657ad73 100644 --- a/Source/Glide64/3dmath.cpp +++ b/Source/Glide64/3dmath.cpp @@ -46,6 +46,7 @@ extern "C" { #include #include "3dmath.h" +#include "trace.h" void calc_light(VERTEX *v) { @@ -417,26 +418,26 @@ void math_init() { __asm { - mov eax,1 + mov eax, 1 cpuid - mov dwEdx,edx + mov dwEdx, edx } } - __except(EXCEPTION_EXECUTE_HANDLER) + __except (EXCEPTION_EXECUTE_HANDLER) { return; } - if (dwEdx & (1<<25)) + if (dwEdx & (1 << 25)) { - if (dwEdx & (1<<24)) + if (dwEdx & (1 << 24)) { __try { __asm xorps xmm0, xmm0 IsSSE = TRUE; } - __except(EXCEPTION_EXECUTE_HANDLER) + __except (EXCEPTION_EXECUTE_HANDLER) { return; } @@ -446,7 +447,7 @@ void math_init() if (IsSSE) { MulMatrices = MulMatricesSSE; - LOG("3DNOW! detected.\n"); + WriteTrace(TraceGlide64, TraceDebug, "3DNOW! detected."); } #endif //_DEBUG