Skip to content

Fix/arm bench - #324

Open
davidmiheev wants to merge 2 commits into
kth-competitive-programming:mainfrom
davidmiheev:fix/arm-bench-h
Open

davidmiheev wants to merge 2 commits into
kth-competitive-programming:mainfrom
davidmiheev:fix/arm-bench-h

Conversation

@davidmiheev

Copy link
Copy Markdown

No description provided.

claude added 2 commits October 8, 2026 01:25
bench.h included <x86intrin.h> unconditionally for an unused rdtsc(),
which breaks the ConvexHull stress test on ARM (e.g. Raspberry Pi).
Only define rdtsc() on x86; tick() and timeit are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rLUNgQTuqGH79WJWupFZK
The expectSuccess=false tests loop until modmul gives a wrong answer,
which relies on x87's 64-bit mantissa. With a wider long double (binary128
on aarch64) modmul stays correct up to ~2^63, so they never terminate.
Only run them when LDBL_MANT_DIG == 64.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rLUNgQTuqGH79WJWupFZK
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