https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244962

--- Comment #11 from Mateusz Guzik <m...@freebsd.org> ---
This is probably an optimization which is only there because of something wrong
with headers.

There is one fundamental discrepancy between bcmp and memcmp: the former only
indicates there is a difference while the latter computes what it is on the
first differing byte. Thus, if bcmp is provided and buffers differ, it has less
work to do than memcmp and is a better pick if available.

However, FreeBSD headers explicitly define bcmp as builtin_memcmp, therefore
the above should not be happening if they are properly included and the defines
are not overwritten. Once more this is just some build mess.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"

Reply via email to