Home
last modified time | relevance | path

Searched refs:__builtin_clz (Results 1 – 25 of 114) sorted by relevance

12345

/external/compiler-rt/lib/builtins/
Dfp_extend.h24 #define src_rep_t_clz __builtin_clz
36 return __builtin_clz(a >> 32); in src_rep_t_clz()
38 return 32 + __builtin_clz(a & REP_C(0xffffffff)); in src_rep_t_clz()
47 #define src_rep_t_clz __builtin_clz
Dudivmoddi4.c102 sr = __builtin_clz(d.s.high) - __builtin_clz(n.s.high); in __udivmoddi4()
142 sr = 1 + n_uword_bits + __builtin_clz(d.s.low) - __builtin_clz(n.s.high); in __udivmoddi4()
176 sr = __builtin_clz(d.s.high) - __builtin_clz(n.s.high); in __udivmoddi4()
Dint_lib.h100 uint32_t __inline __builtin_clz(uint32_t value) { in __builtin_clz() function
121 return __builtin_clz(msh); in __builtin_clzll()
122 return 32 + __builtin_clz(lsh); in __builtin_clzll()
Dudivsi3.c36 sr = __builtin_clz(d) - __builtin_clz(n); in ARM_EABI_FNALIAS()
Dfp_lib.h50 return __builtin_clz(a); in rep_clz()
74 return __builtin_clz(a >> 32); in rep_clz()
76 return 32 + __builtin_clz(a & REP_C(0xffffffff)); in rep_clz()
/external/libhevc/common/x86/
Dihevc_platform_macros.h78 return (__builtin_clz(u4_word)); in CLZ()
85 return (__builtin_clz(u4_word)); in CLZNZ()
111 r = 31 - __builtin_clz(word); \
146 r = 32 - __builtin_clz(word); \
/external/libhevc/common/arm/
Dihevc_platform_macros.h139 return (__builtin_clz(u4_word)); in CLZ()
146 return (__builtin_clz(u4_word)); in CLZNZ()
172 r = 31 - __builtin_clz(word); \
207 r = 32 - __builtin_clz(word); \
/external/zopfli/src/zopfli/
Dutil.c31 return (31 ^ __builtin_clz(dist - 1)) - 1; /* log2(dist - 1) - 1 */ in ZopfliGetDistExtraBits()
55 int l = 31 ^ __builtin_clz(dist - 1); /* log2(dist - 1) */ in ZopfliGetDistExtraBitsValue()
81 int l = (31 ^ __builtin_clz(dist - 1)); /* log2(dist - 1) */ in ZopfliGetDistSymbol()
/external/clang/test/CodeGen/
D2006-01-16-BitCountIntrinsicsUnsigned.c6 return __builtin_clz(X); in t2()
11 return __builtin_clz(X); in t1()
Dbuiltin-count-zeros.c4 int a(int a) {return __builtin_ctz(a) + __builtin_clz(a);} in a()
/external/clang/test/Sema/
Dconstant-builtins-2.c115 char clz1[__builtin_clz(1) == BITSIZE(int) - 1 ? 1 : -1];
116 char clz2[__builtin_clz(7) == BITSIZE(int) - 3 ? 1 : -1];
117 char clz3[__builtin_clz(1 << (BITSIZE(int) - 1)) == 0 ? 1 : -1];
118 int clz4 = __builtin_clz(0); // expected-error {{not a compile-time constant}}
/external/brotli/c/enc/
Dfast_log.h23 #if BROTLI_GNUC_HAS_BUILTIN(__builtin_clz, 3, 4, 0) || \ in Log2FloorNonZero()
25 return 31u ^ (uint32_t)__builtin_clz((uint32_t)n); in Log2FloorNonZero()
/external/clang/lib/Headers/
Dlzcntintrin.h43 return __X ? __builtin_clz(__X) : 32; in __lzcnt32()
49 return __X ? __builtin_clz(__X) : 32; in _lzcnt_u32()
/external/libcxx/include/support/ibm/
Dsupport.h40 #define __builtin_clz(x) __cntlz4(x) macro
45 #define __builtin_clzl(x) __builtin_clz(x)
/external/libmpeg2/common/armv8/
Dicv_platform_macros.h46 return (__builtin_clz(u4_word)); in CLZ()
54 return (__builtin_clz(u4_word)); in CLZNZ()
/external/libmpeg2/common/mips/
Dicv_platform_macros.h44 return(__builtin_clz(u4_word)); in CLZ()
52 return(__builtin_clz(u4_word)); in CLZNZ()
/external/libmpeg2/common/x86/
Dicv_platform_macros.h44 return(__builtin_clz(u4_word)); in CLZ()
52 return(__builtin_clz(u4_word)); in CLZNZ()
/external/libhevc/common/mips/
Dihevc_platform_macros.h64 return (__builtin_clz(u4_word)); in CLZ()
71 return (__builtin_clz(u4_word)); in CLZNZ()
/external/libmpeg2/common/arm/
Dicv_platform_macros.h44 return (__builtin_clz(u4_word)); in CLZ()
52 return (__builtin_clz(u4_word)); in CLZNZ()
/external/vixl/src/
Dcompiler-intrinsics-vixl.h56 #define COMPILER_HAS_BUILTIN_CLZ (__has_builtin(__builtin_clz))
124 return (value == 0) ? 32 : __builtin_clz(static_cast<unsigned>(value));
/external/mesa3d/src/intel/isl/
Disl_priv.h112 return 31 - __builtin_clz(n); in isl_log2u()
121 return 1 << (32 - __builtin_clz(value - 1)); in isl_round_up_to_power_of_two()
/external/swiftshader/third_party/subzero/src/
DIceUtils.h133 #if __has_builtin(__builtin_clz)
141 ((1 << (CHAR_BIT * sizeof(uint32_t) - __builtin_clz(Size))) - 1) - 1;
/external/drrickorang/LoopbackApp/app/src/main/cpp/audio_utils/
Droundup.c25 int lz = __builtin_clz((int) v); in roundup()
/external/mesa3d/src/mesa/main/
Dimports.h238 return (1 + y) << ((__builtin_clz(x - y) ^ 31) ); in _mesa_next_pow_two_32()
279 return (31 - __builtin_clz(n | 1)); in _mesa_logbase2()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/common/
Dos.h201 *Index = __builtin_clz(Mask); in _BitScanReverse()
208 *Index = __builtin_clz(Mask); in _BitScanReverse()

12345