1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Portions of L4D SDK compile and link on Mac OS X (bug 4684, r=me).

This commit is contained in:
Scott Ehlert
2010-10-14 16:36:09 -05:00
parent 0ab19ebe2e
commit 9995112ca5
32 changed files with 103 additions and 88 deletions

View File

@ -39,7 +39,7 @@ float _3DNow_Sqrt(float x)
movd root, mm0
femms
}
#elif _LINUX
#elif defined _LINUX || defined __APPLE__
__asm __volatile__( "femms" );
__asm __volatile__
(
@ -98,7 +98,7 @@ float FASTCALL _3DNow_VectorNormalize (Vector& vec)
movd radius, mm1
femms
}
#elif _LINUX
#elif defined _LINUX || defined __APPLE__
long long a,c;
int b,d;
memcpy(&a,&vec[0],sizeof(a));
@ -164,7 +164,7 @@ float _3DNow_InvRSquared(const float* v)
movd [r2], mm0
femms
}
#elif _LINUX
#elif defined _LINUX || defined __APPLE__
long long a,c;
int b;
memcpy(&a,&v[0],sizeof(a));