mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-02 08:51:57 +00:00
Stubs for __asm in DXTEncoder.cpp to make it compile
TODO: needs implementation with intrinsics and/or plain C(++)!
This commit is contained in:
parent
91301c893f
commit
25e9e8bf1d
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue