Skip to content

ARM: reduce duplication in fiber context switch#15585

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:refactor/reduce-duplication-in-arm-context-switch
Mar 24, 2025
Merged

ARM: reduce duplication in fiber context switch#15585
straight-shoota merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:refactor/reduce-duplication-in-arm-context-switch

Conversation

@ysbaddaden
Copy link
Collaborator

Instead of copy-pasting the ASM twice (and twice again for LLVM < 9), we can put a few macros in the ASM string to conditionally generate the floating-point instructions.

Note: this likely only works because the ASM is within a wrapping macro, all the macros get resolved and only then does the compiler notices the asm directive.

@straight-shoota straight-shoota added this to the 1.16.0 milestone Mar 21, 2025
@straight-shoota straight-shoota merged commit 497deda into crystal-lang:master Mar 24, 2025
33 of 34 checks passed
@ysbaddaden ysbaddaden deleted the refactor/reduce-duplication-in-arm-context-switch branch March 24, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants