CVSROOT: /cvs Module name: src Changes by: na...@cvs.openbsd.org 2020/06/26 14:16:22
Modified files: regress/lib/libc: Makefile lib/libc/arch/aarch64/string: Makefile.inc lib/libc/arch/powerpc/string: Makefile.inc lib/libc/arch/powerpc64/string: Makefile.inc Added files: lib/libc/arch/aarch64/string: ffs.S lib/libc/arch/powerpc/string: ffs.S lib/libc/arch/powerpc64/string: ffs.S regress/lib/libc/ffs: Makefile ffs_test.c Log message: Provide an optimized implementation of ffs(3) in libc on aarch64/powerpc/powerpc64, making use of the count leading zeros instruction. Also add a brief regression test. ok deraadt@ kettenis@