Skip to content

refactor(read8): use memcpy for 64-bit reads#15

Merged
NewYaroslav merged 1 commit into
mainfrom
codex/refactor-read8-to-use-std-memcpy
Sep 4, 2025
Merged

refactor(read8): use memcpy for 64-bit reads#15
NewYaroslav merged 1 commit into
mainfrom
codex/refactor-read8-to-use-std-memcpy

Conversation

@NewYaroslav

Copy link
Copy Markdown
Owner

Summary

  • replace bytewise read loop with std::memcpy into a uint64_t
  • add traits to access raw data and mark read8 static
  • include <cstring> for memcpy
  • remove if constexpr and use enable_if overloads for C++11

Testing

  • ./scripts/run_tests.sh

https://chatgpt.com/codex/tasks/task_e_68b90fd40420832caf321e532065167c

replace if constexpr dispatch with enable_if overloads so the function compiles under C++11
@NewYaroslav NewYaroslav merged commit 309b8e4 into main Sep 4, 2025
4 checks passed
@NewYaroslav NewYaroslav deleted the codex/refactor-read8-to-use-std-memcpy branch September 4, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant