Home
last modified time | relevance | path

Searched refs:ffs (Results 1 – 25 of 134) sorted by relevance

123456

/external/mesa3d/src/intel/isl/
Disl_gen9.c52 .w = 1 << (12 - (ffs(bpb) - 4) + (4 * is_Ys)), in gen9_calc_std_image_alignment_sa()
63 .w = 1 << (6 - ((ffs(bpb) - 4) / 2) + (4 * is_Ys)), in gen9_calc_std_image_alignment_sa()
64 .h = 1 << (6 - ((ffs(bpb) - 3) / 2) + (4 * is_Ys)), in gen9_calc_std_image_alignment_sa()
77 align_sa->w >>= (ffs(info->samples) - 0) / 2; in gen9_calc_std_image_alignment_sa()
78 align_sa->h >>= (ffs(info->samples) - 1) / 2; in gen9_calc_std_image_alignment_sa()
89 .w = 1 << (4 - ((ffs(bpb) - 2) / 3) + (4 * is_Ys)), in gen9_calc_std_image_alignment_sa()
90 .h = 1 << (4 - ((ffs(bpb) - 4) / 3) + (2 * is_Ys)), in gen9_calc_std_image_alignment_sa()
91 .d = 1 << (4 - ((ffs(bpb) - 3) / 3) + (2 * is_Ys)), in gen9_calc_std_image_alignment_sa()
/external/mesa3d/src/util/
Dbitscan.h52 #define ffs __builtin_ffs macro
55 int ffs(unsigned i)
65 int ffs(unsigned i);
97 const int i = ffs(*mask) - 1; in u_bit_scan()
131 *start = ffs(*mask) - 1; in u_bit_scan_consecutive_range()
132 *count = ffs(~(*mask >> *start)) - 1; in u_bit_scan_consecutive_range()
Dbitscan.c35 ffs(unsigned i) in ffs() function
70 bit = ffs((unsigned) (val & 0xffffffff)); in ffsll()
74 bit = ffs((unsigned) (val >> 32)); in ffsll()
Dbitset.h91 return ffs(x[i]) + BITSET_WORDBITS * i; in __bitset_ffs()
123 bit = ffs(*tmp) - 1; in __bitset_next_set()
/external/llvm/test/Transforms/InstCombine/
Dffs-1.ll1 ; Test that the ffs* library call simplifier works correctly.
11 declare i32 @ffs(i32)
15 ; Check ffs(0) -> 0.
19 %ret = call i32 @ffs(i32 0)
38 ; Check ffs(c) -> cttz(c) + 1, where 'c' is a constant.
42 %ret = call i32 @ffs(i32 1)
49 %ret = call i32 @ffs(i32 2048)
56 %ret = call i32 @ffs(i32 65536)
103 ; Check ffs(x) -> x != 0 ? (i32)llvm.cttz(x) + 1 : 0.
107 %ret = call i32 @ffs(i32 %x)
/external/swiftshader/third_party/LLVM/test/Transforms/SimplifyLibCalls/
DFFS.ll3 ; RUN: not grep {call.*@ffs}
7 declare i32 @ffs(i32)
15 %val0 = call i32 @ffs( i32 %arg ) ; <i32> [#uses=1]
16 %val1 = call i32 @ffs( i32 1 ) ; <i32> [#uses=1]
17 %val2 = call i32 @ffs( i32 2048 ) ; <i32> [#uses=1]
/external/jemalloc/include/jemalloc/
Djemalloc_macros.h16 # define MALLOCX_ALIGN(a) ((int)(ffs((int)(a))-1))
19 ((int)(((size_t)(a) < (size_t)INT_MAX) ? ffs((int)(a))-1 : \
20 ffs((int)(((size_t)(a))>>32))+31))
Djemalloc_macros.h.in16 # define MALLOCX_ALIGN(a) ((int)(ffs((int)(a))-1))
19 ((int)(((size_t)(a) < (size_t)INT_MAX) ? ffs((int)(a))-1 : \
20 ffs((int)(((size_t)(a))>>32))+31))
Djemalloc.h106 # define MALLOCX_ALIGN(a) ((int)(ffs((int)(a))-1))
109 ((int)(((size_t)(a) < (size_t)INT_MAX) ? ffs((int)(a))-1 : \
110 ffs((int)(((size_t)(a))>>32))+31))
/external/jemalloc/include/msvc_compat/
Dstrings.h18 static __forceinline int ffs(int x) in ffs() function
56 # define ffs(x) __builtin_ffs(x) macro
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_rast_tri_tmp.h136 int i = ffs(partial_mask) - 1; in TAG()
158 int i = ffs(inmask) - 1; in TAG()
198 int i = ffs(plane_mask) - 1; in TAG()
290 int i = ffs(partial_mask) - 1; in TAG()
311 int i = ffs(inmask) - 1; in TAG()
378 int i = ffs(partial_mask) - 1; in TRI_16()
/external/iptables/extensions/
Dlibipt_ULOG.c90 printf(" --ulog-nlgroup %d", ffs(loginfo->nl_group)); in ULOG_save()
106 ffs(loginfo->nl_group)); in ULOG_print()
/external/jemalloc/include/jemalloc/internal/
Dutil.h176 #error No implementation for size_t ffs() in ffs_zu()
189 #error No implementation for 64-bit ffs() in ffs_u64()
200 #error No implementation for 32-bit ffs() in ffs_u32()
/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_util.cpp323 pos = ffs(~data[i]) - 1; in findFreeRange()
332 pos = ffs(~b) - 1; in findFreeRange()
344 pos = ffs(~b) - 1; in findFreeRange()
386 int pos = ffs(bits) - 1; in print()
/external/libpcap/lbl/
Dos-hpux11.h23 int ffs(int i);
Dos-aix7.h23 int ffs(int i);
Dos-aix4.h23 int ffs(int i);
/external/squashfs-tools/squashfs-tools/
Dxz_wrapper.c192 n = ffs(dictionary_size) - 1; in xz_options_post()
300 n = ffs(dictionary_size) - 1; in xz_extract_options()
344 n = ffs(dictionary_size) - 1; in xz_display_options()
/external/fio/
Dfilelock.c32 struct fio_filelock ffs[MAX_FILELOCKS]; member
85 struct fio_filelock *ff = &fld->ffs[i]; in fio_filelock_init()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen8_multisample_state.c38 unsigned log2_samples = ffs(MAX2(num_samples, 1)) - 1; in gen8_emit_3dstate_multisample()
Dgen7_vs_state.c62 ffs(stage_state->per_thread_scratch) - 11); in upload_vs_state()
Dgen8_vs_state.c63 ffs(stage_state->per_thread_scratch) - 11); in upload_vs_state()
Dgen8_hs_state.c58 ffs(stage_state->per_thread_scratch) - 11); in gen8_upload_hs_state()
Dgen7_cs_state.c74 ffs(stage_state->per_thread_scratch) - 11); in brw_upload_cs_state()
81 ffs(stage_state->per_thread_scratch) - 12); in brw_upload_cs_state()
Dgen8_ds_state.c57 ffs(stage_state->per_thread_scratch) - 11); in gen8_upload_ds_state()

123456