Home
last modified time | relevance | path

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

123

/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.h104 uint32_t __inline __builtin_clz(uint32_t value) { in __builtin_clz() function
125 return __builtin_clz(msh); in __builtin_clzll()
126 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()
Dclzdi2.c27 return __builtin_clz((x.s.high & ~f) | (x.s.low & f)) + in __clzdi2()
Dfloatunsitf.c28 const int exponent = (aWidth - 1) - __builtin_clz(a); in __floatunsitf()
Dfloatunsidf.c32 const int exponent = (aWidth - 1) - __builtin_clz(a); in ARM_EABI_FNALIAS()
Dfloatsitf.c37 const int exponent = (aWidth - 1) - __builtin_clz(aAbs); in __floatsitf()
/external/libhevc/common/x86/
Dihevc_platform_macros.h79 return (__builtin_clz(u4_word)); in CLZ()
85 return (__builtin_clz(u4_word)); in CLZNZ()
110 r = 31 - __builtin_clz(word); \
145 r = 32 - __builtin_clz(word); \
/external/libhevc/common/arm/
Dihevc_platform_macros.h124 return (__builtin_clz(u4_word)); in CLZ()
131 return (__builtin_clz(u4_word)); in CLZNZ()
157 r = 31 - __builtin_clz(word); \
192 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()
Dmips-count-builtins.c18 leading = __builtin_clz(P); in test_i32()
Dcount-builtins.c15 leading = __builtin_clz(P); in test_i32()
/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/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/x86/
Dicv_platform_macros.h44 return(__builtin_clz(u4_word)); in CLZ()
52 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/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/vixl/
Dcompiler-intrinsics.h55 #define COMPILER_HAS_BUILTIN_CLZ (__has_builtin(__builtin_clz))
118 return (value == 0) ? 32 : __builtin_clz(static_cast<unsigned>(value));

123