mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 12:40:23 +01:00
swr: extern declaration for win32 intrinsics
This fixes compilation on msvc because llvm redefines these too Closes #4417 Reviewed-by: Jan Zielinski <jan.zielinski@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9502>
This commit is contained in:
parent
321dadf229
commit
31dbef02a0
1 changed files with 2 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ static inline void AlignedFree(void* p)
|
|||
#endif
|
||||
|
||||
#if !defined(_WIN64)
|
||||
extern "C" {
|
||||
inline unsigned char _BitScanForward64(unsigned long* Index, uint64_t Mask)
|
||||
{
|
||||
#ifdef __GNUC__
|
||||
|
|
@ -131,6 +132,7 @@ inline unsigned char _BitScanReverse64(unsigned long* Index, uint64_t Mask)
|
|||
#endif
|
||||
return (Mask != 0);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#elif defined(__APPLE__) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue