From 5dc98392e034a3f4ba1dafbf69883d657db4817d Mon Sep 17 00:00:00 2001 From: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> Date: Thu, 12 Aug 2021 23:57:21 +0100 Subject: [PATCH] sqrtf.c OK (#257) * sqrtf OK * spec * format * Move to libultra --- src/libultra/gu/sqrtf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libultra/gu/sqrtf.c b/src/libultra/gu/sqrtf.c index f233893bcb..b2d27bdb69 100644 --- a/src/libultra/gu/sqrtf.c +++ b/src/libultra/gu/sqrtf.c @@ -1,3 +1,9 @@ #include "global.h" -#pragma GLOBAL_ASM("asm/non_matchings/boot/sqrtf/sqrtf.s") +#ifndef __GNUC__ +#define __builtin_sqrtf sqrtf +#endif + +f32 sqrtf(f32 f) { + return __builtin_sqrtf(f); +} \ No newline at end of file