mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
mesa: remove platform checks around __builtin_ffs, __builtin_ffsll
Use the __builtin_ffs, __builtin_ffsll functions whenever we have GCC, not just for specific platforms. Fixes Solaris build. Note: This is a candidate for the stable branches. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62868 Signed-off-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
99811c344b
commit
95df2b2883
1 changed files with 0 additions and 6 deletions
|
|
@ -500,17 +500,11 @@ _mesa_realloc( void *oldBuffer, size_t oldSize, size_t newSize );
|
|||
#ifndef FFS_DEFINED
|
||||
#define FFS_DEFINED 1
|
||||
#ifdef __GNUC__
|
||||
|
||||
#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(ANDROID) || defined(__APPLE__)
|
||||
#define ffs __builtin_ffs
|
||||
#define ffsll __builtin_ffsll
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
extern int ffs(int i);
|
||||
extern int ffsll(long long int i);
|
||||
|
||||
#endif /*__ GNUC__ */
|
||||
#endif /* FFS_DEFINED */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue