Searched refs:ffs (Results 1 - 20 of 20) sorted by relevance

/haiku/src/system/libroot/posix/musl/misc/
H A Dffs.c3 int ffs(int i);
4 int ffs(int i) function
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcompat.h64 extern int ffs(int i);
H A Dbootsect.c203 vol->sector_size_bits = ffs(vol->sector_size) - 1;
237 vol->nr_clusters = sectors >> (ffs(sectors_per_cluster) - 1);
258 vol->cluster_size_bits = ffs(vol->cluster_size) - 1;
283 vol->mft_record_size_bits = ffs(vol->mft_record_size) - 1;
293 vol->indx_record_size_bits = ffs(vol->indx_record_size) - 1;
H A Dcompat.c31 * ffs - Find the first set bit in an int
38 int ffs(int x) function
H A Dlogfile.c239 * We cannot just use ffs() because the file size is not a power of 2.
514 * Use generic_ffs() instead of ffs() to enable the compiler to
517 log_page_bits = ffs(log_page_size) - 1;
H A Dmft.c515 return ffs(~word) - 1;
H A Ddir.c1206 index_block_size_bits = ffs(index_block_size) - 1;
H A Dattrib.c388 na->compression_block_size_bits = ffs(
/haiku/headers/posix/
H A Dstrings.h17 static __inline__ int ffs(int i) { return __builtin_ffs(i); } function
/haiku/src/tools/fs_shell/
H A Dstring.cpp273 return ffs(i);
/haiku/src/libs/compat/freebsd_network/compat/machine/x86/
H A Dcpufunc.h170 ffs(int mask) function
173 * Note that gcc-2's builtin ffs would be used if we didn't declare
187 return (ffs((int)mask));
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/dev/le/
H A Dam7990.c174 init.init_rlen = (a >> 16) | ((ffs(sc->sc_nrbuf) - 1) << 13);
178 init.init_tlen = (a >> 16) | ((ffs(sc->sc_ntbuf) - 1) << 13);
H A Dam79900.c202 init.init_mode |= LE_HTOLE32(((ffs(sc->sc_ntbuf) - 1) << 28) |
203 ((ffs(sc->sc_nrbuf) - 1) << 20));
/haiku/src/libs/compat/freebsd_network/compat/machine/x86_64/
H A Dcpufunc.h150 #define ffs(x) __builtin_ffs(x) macro
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dmkntfs.c3409 while (volume_size >> (ffs(vol->cluster_size) - 1 + 32)) {
3443 vol->cluster_size_bits = ffs(vol->cluster_size) - 1;
3510 vol->mft_record_size_bits = ffs(vol->mft_record_size) - 1;
3528 vol->indx_record_size_bits = ffs(vol->indx_record_size) - 1;
4354 bs->clusters_per_mft_record = -(ffs(g_vol->mft_record_size) -
/haiku/headers/private/fs_shell/
H A Dfssh_api_wrapper.h1399 #define ffs fssh_ffs macro
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_rate/sample/
H A Dsample.c1377 sn->current_rix[y] = ffs(sn->ratemask)-1;
/haiku/src/system/libroot/stubbed/
H A Dlibroot_stubs.c1699 void ffs() {} function
H A Dlibroot_stubs_legacy.c1644 void ffs() {} function
/haiku/src/add-ons/kernel/bus_managers/pci/
H A Dpci.cpp1972 info->control_value |= (ffs(count) - 1) << 4;

Completed in 278 milliseconds