Skip to content

docs: restore floating-point class compare row - #3352

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
hamada65:docs-proc-165-class-row
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
hamada65:docs-proc-165-class-row

Conversation

@hamada65

Copy link
Copy Markdown
Contributor

Summary

  • restore the clean Floating-point class compare contract row from 89c2d9ac
  • remove the obsolete tail spliced into the measured row during the round-40 merge
  • restore the intended |v| and -|v| modifier forms

Tests

  • .venv\Scripts\python.exe -I tests/test_docs_design_rows.py
  • .venv\Scripts\python.exe -I tests/test_docs_links.py
  • exact row comparison against 89c2d9ac
  • git diff --check

Claim: PROC-165 in #3232.

AI-assisted (Codex).

@sovljanskii

Copy link
Copy Markdown
Contributor

Checked 9891a5a7 against f847748c: the only change is the "Floating-point class compare" row of docs/design.md, and it now equals the row on 89c2d9ac byte for byte. Applying just that row restore to main's file gives this PR's file exactly.

The text the merge spliced in was the old row's tail (cs_cmpx_class_f32 … (driver 616.92). | v |). It sat in the middle of |v|, -|v| and gave the row 5 extra | cell separators. The PR removes it. Looks good to me.

AI-assisted.

@bobcatchris

Copy link
Copy Markdown
Contributor

One thing this row still does after the restore, so you know it before a reviewer spots it: it renders short.

The row has 7 separators against a 3-separator header because its own text lists the modifier forms as |v| — unescaped pipes inside the inline code. GFM treats each as a cell boundary even inside a code span, so the row renders into columns the header does not have and the tail ("… × 10 class bits for both v_cmp_class_f32_e64 and v_cmpx_class_f32_e64 in wave32 and wave64 across all four (IEEE=0/1, denorm32=0/3) modes …") is dropped in the rendered page. Every neighbouring row in that table has 3.

The escape is \|v\|, -\|v\| (backslash before each pipe, inside the backticks too):

modifier forms (`v`, `-v`, `\|v\|`, `-\|v\|`) × 10 class bits

It is one of 18 rows in docs/design.md with this shape — I have #3424 open to fix all of them and to teach tests/test_docs_design_rows.py to reject a row whose cell count differs from its header's. If you would rather keep this PR to the restore, leave it and #3424 covers the row; if you want it here, the one-line escape is enough. Either way, nothing blocks: the content of your restore is correct, only its rendering is short.

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.

4 participants