kernel: Add flsll(). Identical to flsl().

Operating Systems / DragonFlyBSD - Sascha Wildner [online.de] - 2 January 2016 06:53 UTC

Add FreeBSD's libkern version too, but on x86_64 this is not compiled, because we use inline assembly.

4e70a2e kernel: Add flsll(). Identical to flsl().
sys/cpu/x86_64/include/cpufunc.h | 8 +++++++
sys/libkern/flsll.c | 47 ++++++++++++++++++++++++++++++++++++++
sys/sys/libkern.h | 3 +++
3 files changed, 58 insertions(+)

Upstream: gitweb.dragonflybsd.org


  • Share