Skip to content

added CRT absolute value functions#809

Draft
ZERICO2005 wants to merge 1 commit into
CE-Programming:masterfrom
ZERICO2005:crt_abs
Draft

added CRT absolute value functions#809
ZERICO2005 wants to merge 1 commit into
CE-Programming:masterfrom
ZERICO2005:crt_abs

Conversation

@ZERICO2005

Copy link
Copy Markdown
Contributor

LLVM does not emit these currently.

Current codegen for calculating the absolute value of an integer is pretty bad (involving a "branchless" XOR operation). Having a dedicated routine for the absolute value can help the compiler to produce faster/smaller code in the meantime.

@ZERICO2005 ZERICO2005 requested a review from calc84maniac June 27, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant