[libc-commits] [libc] [llvm] [libc] Introduce a highly optimized `bcmp` implementation (PR #244952)

Aiden Grossman via libc-commits libc-commits at lists.llvm.org
Tue Nov 24 09:53:15 PST 2026


boomanaiden154 wrote:

> Why do we have a bcmp implementation rather than just aliasing to memcmp? AFAICT all other major free libcs do the latter.

They have started to not do that because it leaves performance on the table. I think glibc switched to a customized bcmp implementation in 2.38.

https://github.com/llvm/llvm-project/pull/244952


More information about the libc-commits mailing list