summaryrefslogtreecommitdiffstats
path: root/sys/dev/de
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-08-19 14:54:40 +0000
committerpeter <peter@FreeBSD.org>1999-08-19 14:54:40 +0000
commit8ffe59d0bfda567fe8d56ea92c83e8b9aa261da8 (patch)
tree6cb3778e79a4a5b9d129b9fcea4085c1e041a1d5 /sys/dev/de
parentd4c0c0bd4aa267c169eeebee5cb975271791f325 (diff)
downloadFreeBSD-src-8ffe59d0bfda567fe8d56ea92c83e8b9aa261da8.zip
FreeBSD-src-8ffe59d0bfda567fe8d56ea92c83e8b9aa261da8.tar.gz
Undo my previous commit and do it differently. Break the ffs() etc macros
into two parts - one to do the bsfl and the other to convert the result (base 0) to ffs()-like (base 1) in inline C. This enables the optimizer to be a lot smarter in certain cases, like where it knows that the argument is non-zero and we want ffs(known non zero arg) - 1. This appears to produce identical code to the old inline when the argument is unknown.
Diffstat (limited to 'sys/dev/de')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud