Repository navigation
doc: show the assembly of a call to each hash policy's hash - #147
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(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 itshash: ahash_of(type_id)function and its x86-64 clang 22-O2assembly, in Intel syntax (-mbmi2forminimal_cover_hash). The mangledregistry_state<...>::stoperand is writtenst.The source of each listing is a tested example,
doc/modules/ROOT/examples/hash_call_<policy>.cpp. Theminimal_cover_hashone is guarded byBOOST_OPENMETHOD_HAS_PEXT, like the existing snippets, so it builds without-mbmi2. The pasted assembly is a snapshot that nothing checks;CLAUDE.mdsays 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