mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
gallium/util: Don't implement u_bit_scan64 on MSVC.
As ffsll doesn't exist in MSVC yet, and u_bit_scan64 is only used by radeonsi which is never built with MSVC. This is just a stop-gap fix to unbreak MSVC build until we refactor these mathematical portability wrappers into src/util. Trivial.
This commit is contained in:
parent
46f1033067
commit
661c8bb220
1 changed files with 2 additions and 0 deletions
|
|
@ -584,6 +584,7 @@ u_bit_scan(unsigned *mask)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
static INLINE int
|
static INLINE int
|
||||||
u_bit_scan64(uint64_t *mask)
|
u_bit_scan64(uint64_t *mask)
|
||||||
{
|
{
|
||||||
|
|
@ -591,6 +592,7 @@ u_bit_scan64(uint64_t *mask)
|
||||||
*mask &= ~(1llu << i);
|
*mask &= ~(1llu << i);
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return float bits.
|
* Return float bits.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue