Skip to content

doc: show the assembly of a call to each hash policy's hash - #147

Merged
jll63 merged 1 commit into
boostorg:developfrom
jll63:doc/hash-call-asm
Nov 15, 2026
Merged

jll63 merged 1 commit into
boostorg:developfrom
jll63:doc/hash-call-asm

Conversation

@jll63

@jll63 jll63 commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

(Written by Claude Code, on behalf of @jll63.)

The reference page of each hash policy (fast_perfect_hash, minimal_perfect_hash, two_level_hash, minimal_cover_hash) now shows the code generated for a call to its hash: a hash_of(type_id) function and its x86-64 clang 22 -O2 assembly, in Intel syntax (-mbmi2 for minimal_cover_hash). The mangled registry_state<...>::st operand is written st.

The source of each listing is a tested example, doc/modules/ROOT/examples/hash_call_<policy>.cpp. The minimal_cover_hash one is guarded by BOOST_OPENMETHOD_HAS_PEXT, like the existing snippets, so it builds without -mbmi2. The pasted assembly is a snapshot that nothing checks; CLAUDE.md says to regenerate it when a hash changes.

Checked: the four examples build and pass under ctest, clang-format 22 is clean, and the four reference pages render the blocks as code.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://147.openmethod.prtest3.cppalliance.org/libs/openmethod/doc/html/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-11-15 14:45:20 UTC

@codecov

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.57%. Comparing base (b681217) to head (1e83e3f).
⚠️ Report is 31 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #147   +/-   ##
========================================
  Coverage    92.56%   92.57%           
========================================
  Files           29       29           
  Lines         2314     2316    +2     
  Branches       699      700    +1     
========================================
+ Hits          2142     2144    +2     
  Misses         111      111           
  Partials        61       61           
Files with missing lines Coverage Δ
...de/boost/openmethod/policies/fast_perfect_hash.hpp 85.71% <ø> (ø)
...e/boost/openmethod/policies/minimal_cover_hash.hpp 87.09% <ø> (ø)
...boost/openmethod/policies/minimal_perfect_hash.hpp 87.58% <ø> (ø)
...clude/boost/openmethod/policies/two_level_hash.hpp 86.20% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f868381...1e83e3f. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jll63
jll63 merged commit 9ad9522 into boostorg:develop Nov 15, 2026
54 of 56 checks passed
@jll63
jll63 deleted the doc/hash-call-asm branch November 15, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants