Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Note that this doesn't get used on x86-64, where the repne scasb sequence is apparently penalized.


Their x86-64 implementation is in amd64 tree:

http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/arch/amd6...

It uses repne scasb.

Comment in x86-65 directory says:

"change amd64's MACHINE_ARCH from x86_64 to amd64. There are many many reasons for this, quite a few of them technical, and not all of them in response to Intel's broken ia32e crud. The gcc toolchain stays at x86_64 for now."


Weird, I wonder why I thought it wasn't. I'll go look. Thanks!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: