Skip to content

Implement more intrinsics. - #7

Merged
OmniBlade merged 2 commits into
TheAssemblyArmada:masterfrom
OmniBlade:feature/fabsintrin
Sep 11, 2026
Merged

OmniBlade merged 2 commits into
TheAssemblyArmada:masterfrom
OmniBlade:feature/fabsintrin

Conversation

@OmniBlade

@OmniBlade OmniBlade commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Implements ARM intrinsics for sqrt and SSE intrinsics for fabs.

Okladnoj added a commit to Okladnoj/GeneralsGameCode that referenced this pull request Sep 7, 2026
Pins GameMath at OmniBlade/gamemath @ ea3c18bd, the head of
TheAssemblyArmada/GameMath#7, and remeasures the bench matrix against
it in both orders. The control, 47be83a, was remeasured in the same
sitting, so the two are comparable; the committed numbers from the
earlier session are not, since nothing in them records the revision
they were taken on.

The bits do not move. All six math-win-* dumps come back identical to
the ones taken on 47be83a, so the SSE fabs returns what the software
path returned. Being unchanged, they are not part of this commit.

fabs is the row the pin adds. On x64 the double path falls from 6.5 ns
per call to 1.6. On x86, the architecture the game builds, it rises
instead, from 8.1 ns to 10.8 - the same to within a couple of tenths
across all four x86 configurations and both measurement orders. The
float path is unchanged everywhere except x64, where it rises from 1.4
to 1.6.

sqrt is the same code on both pins and moved by 0 to 7 per cent, which
is the noise floor here and is what makes the fabs figures readable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@OmniBlade
OmniBlade merged commit 01391cd into TheAssemblyArmada:master Sep 11, 2026
20 checks passed
@OmniBlade
OmniBlade deleted the feature/fabsintrin branch September 11, 2026 09:00
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.

1 participant