23 #ifndef __LIBRETRO_SDK_COMPAT_INTRINSICS_H 24 #define __LIBRETRO_SDK_COMPAT_INTRINSICS_H 33 #if defined(_MSC_VER) && !defined(_XBOX) 44 #if defined(__GNUC__) && !defined(PS2) 45 return __builtin_clz(
val << 16 | 0x8000);
49 while(!(
val & 0x8000) && ret < 16)
62 #if defined(__GNUC__) && !defined(RARCH_CONSOLE) 63 return __builtin_ctz(
x);
64 #elif _MSC_VER >= 1400 && !defined(_XBOX) 66 _BitScanReverse((
unsigned long*)&
r,
x);
static RETRO_BEGIN_DECLS INLINE unsigned compat_clz_u16(uint16_t val)
Definition: intrinsics.h:42
GLuint GLfloat * val
Definition: glext.h:7847
#define INLINE
Definition: retro_inline.h:35
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
static INLINE int compat_ctz(unsigned x)
Definition: intrinsics.h:60
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
unsigned short uint16_t
Definition: stdint.h:125