Created
August 6, 2024 11:20
-
-
Save pankkor/876865dbb9151e7772fd42d1eae5262d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FORCE_INLINE static f32 absf32(f32 v) { | |
f32 ret; | |
__asm__ volatile ( | |
"fabs %s0, %s1\n" | |
: "=w" (ret) | |
: "w" (v) | |
); | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment