Skip to content

Fix compilation on aarch64#9

Merged
yohanchatelain merged 1 commit into
verificarlo:mainfrom
pablooliveira:fix-aarch64
Jun 10, 2026
Merged

Fix compilation on aarch64#9
yohanchatelain merged 1 commit into
verificarlo:mainfrom
pablooliveira:fix-aarch64

Conversation

@pablooliveira

Copy link
Copy Markdown
Member

-> replace __float128 by _Float128
-> call get_tid with syscall

with @yohanchatelain

-> replace __float128 by _Float128
-> call get_tid with syscall

with @yohanchatelain

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to restore/build compatibility on aarch64 by adjusting (1) the project’s 128-bit floating-point alias and (2) the way thread IDs are obtained for RNG seeding.

Changes:

  • Switch RNG thread-id retrieval from gettid() to syscall(...) in xoshiro_vector.cpp.
  • Update Float128 typedef logic in utils.h to prefer _Float128 off x86_64.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/xoshiro_vector.cpp Uses syscall(__NR_gettid) instead of gettid() for RNG seeding; adds <sys/syscall.h>.
src/utils.h Changes Float128 selection logic to use __float128 on x86_64 and _Float128 elsewhere.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/xoshiro_vector.cpp
Comment thread src/xoshiro_vector.cpp
Comment thread src/utils.h
@pablooliveira

Copy link
Copy Markdown
Member Author
  • we decided to stay with __NR_gettid since that how it's currently done in verificarlo.
  • currently PRISM/Verificarlo only target amd64 / arch64

@yohanchatelain yohanchatelain merged commit c4cda1a into verificarlo:main Jun 10, 2026
5 checks passed
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.

3 participants