Stubs for __asm in DXTEncoder.cpp to make it compile

TODO: needs implementation with intrinsics and/or plain C(++)!
This commit is contained in:
Daniel Gibson 2012-12-02 05:26:11 +01:00
parent 91301c893f
commit 25e9e8bf1d

View file

@ -1110,6 +1110,7 @@ NormalDistanceDXT1
*/ */
int NormalDistanceDXT1( const int* vector, const int* normalized ) int NormalDistanceDXT1( const int* vector, const int* normalized )
{ {
#if defined(_MSC_VER) && defined(_M_IX86)
int result; int result;
__asm __asm
{ {
@ -1150,6 +1151,11 @@ int NormalDistanceDXT1( const int* vector, const int* normalized )
movd result, xmm0 movd result, xmm0
} }
return result; return result;
#else // not _MSC_VERSION && defined(_M_IX86)
// DG: alternative implementation for non-MSVC builds
return 0; // FIXME: implementation!!
// DG end
#endif // _MSC_VERSION && defined(_M_IX86)
} }
/* /*
@ -1159,6 +1165,7 @@ NormalDistanceDXT5
*/ */
int NormalDistanceDXT5( const int* vector, const int* normalized ) int NormalDistanceDXT5( const int* vector, const int* normalized )
{ {
#ifdef _MSC_VER && defined(_M_IX86)
int result; int result;
__asm __asm
{ {
@ -1209,6 +1216,11 @@ int NormalDistanceDXT5( const int* vector, const int* normalized )
movd result, xmm0 movd result, xmm0
} }
return result; return result;
#else // not _MSC_VER && defined(_M_IX86)
// DG: alternative implementation for non-MSVC builds
return 0; // FIXME: implementation!!
// DG end
#endif // _MSC_VER && defined(_M_IX86)
} }
/* /*