allow ffs & co. a binary search

Andriy Gapon avg at FreeBSD.org
Thu Jun 18 13:52:44 UTC 2015


On 17/06/2015 19:53, Konstantin Belousov wrote:
> AFAIR it was about 'sufficiently smart compiler' and the fact that the
> functions are not on the hottest paths.

It seems that sufficiently smart compilers still do not exist :-)
At least as far as compilers that are used for compiling FreeBSD are considered.

[Offtopic] my impression is that lately smartness of compilers is mostly being
improved by various tricks and shortcuts (undefined behavior, etc), rather than
by recognizing patterns in the C code that could be turned into more efficient
machine code.

-- 
Andriy Gapon


More information about the freebsd-hackers mailing list