haiku/headers
Adrien Destugues 2dc597d50d Optimize ffs() implementation
- Use gcc builtin
- Define as a static inline function in the .h so no function call overhead is needed
- Keep the function in libroot for backwards compatibility
- Remove a duplicate implementation in the freebsd compatibility layer

gcc2 does not document the builtin, but it is in fact already available
there as well.

Fixes #3281.

Change-Id: I94f8a2548637aa70e85febbfab06f07c1a427005
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2605
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-08 14:01:53 +00:00
..
build configure & build: Add basic support for building with MSYS. 2020-05-03 13:24:26 -04:00
compatibility Add missing include in bsd/sys/link_elf.h 2019-09-18 03:40:47 +00:00
config ARM64: Initial changes so we can compile GCC toolchain 2019-08-30 19:05:16 +00:00
cpp
glibc
libs agg: fix build. 2020-01-22 19:25:16 +01:00
os Remove MouseDownThread and its usages 2020-05-07 22:08:23 +00:00
posix Optimize ffs() implementation 2020-05-08 14:01:53 +00:00
private Remove MouseDownThread and its usages 2020-05-07 22:08:23 +00:00
tools