Hacker GitHub

← All repos

nadavrot/memset_benchmark

View on GitHub ↗ ★ 345 Assembly

This repository contains high-performance implementations of memset and memcpy in assembly.

5 mentions on Hacker News by 5 people: 1 story, 4 comments · first 2021-11-12 · latest 2023-04-30

Mentions per year 5 mentions · busiest year 2021 (4)
20082026
  1. mem* do not need to be called via ifunc. That is a toolchain decision. See e.g. https://github.com/nadavrot/memset_benchmark for recent data about the cost of PLT indirection for small copies. ETA: Also this excellent paper that is all…
    comment by jeffbee · 2023-04-30 · in Function multi-versioning in GCC 6 (2016)
  2. Link to Github for easier reading https://github.com/nadavrot/memset_benchmark
    comment by Damme · 2021-11-28 · in Optimising Memset and Memcpy
  3. …that the base pointer is not aligned for. And the code looks like it does just that right here: https://github.com/nadavrot/memset_benchmark/blob/main/src/l... This is undefined behavior under C99 §6.3.2.3 Paragraph 7. "If the resulting…
  4. I think that Duff's device could be used on lines 65-86 ( https://github.com/nadavrot/memset_benchmark/blob/eac67b6205... )