Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2022 (1)
20082026
  1. …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…
  2. …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…
  3. …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