moon-chilled/fancy-memcmp
View on GitHub ↗ ★ 7 Assembly
small, fast memcmp
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2022-12-20 · latest 2024-02-06
20082026
-
…of missing isel from gcc/clang (c.f. < https://pp.ipd.kit.edu/firm/selgen >)—my implementation (< https://github.com/moon-chilled/fancy-memcmp/blob/master/mem... >) does it in one less instruction. (An alternative is to skip the xors and…
comment by moonchild · 2024-02-06 · in Out-of-bounds read and write in the glibc's qsort() -
…point at my own implementations of memset and memcmp ( https://github.com/moon-chilled/fancy-memset https://github.com/moon-chilled/fancy-memcmp ), both of which employ novel techniques not used by glibc; but I've not yet gotten around to…
comment by moonchild · 2023-05-23 · in LLVM's Libc Gets Much Faster memcpy For RISC-V -
…careful to keep below 4 cache lines (or 3, considering only the version that doesn't overread)—< https://github.com/moon-chilled/fancy-memcmp/blob/master/mem... >—and it actually has reasonable throughput. (Also: inlining is not the way to…
comment by moonchild · 2022-12-20 · in Fast memcpy, a system design