diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-04-01 20:40:00 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-04-01 20:40:00 +0000 |
commit | 810f5285cd821bed9114d9d5c2b24eb521965dfb (patch) | |
tree | 277c41ca4c53c7f945d699e3cfb65e778e05414f /sys/lib/libkern/strncasecmp.c | |
parent | 7859146b9a9d558cf4f3341b9a31e62894396128 (diff) |
It turns out that the so-called fast ffs(3) routines were wrong, as soon as
more than one bit is set, as the ff1 instruction counts from the highest
order.
However, gcc/m88k with optimization enabled would use a correct, short
sequence based upon ff1 and tweaks, to achieve the intended result, hence
i did not catch this flaw initially.
So revert to the C implementation - it is correct, still decently fast, and
will only be used when compiling at -O0.
Diffstat (limited to 'sys/lib/libkern/strncasecmp.c')
0 files changed, 0 insertions, 0 deletions