shithub: riscv

Download patch

ref: 98b8e7609c725beeb7520863b3d0e07d95396e05
parent: 994cbd04b19eceb893b8252c881993c4342d6bf1
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue May 9 15:20:33 EDT 2023

libc/arm64: sqrt() in assembly

--- a/sys/src/libc/arm64/mkfile
+++ b/sys/src/libc/arm64/mkfile
@@ -14,6 +14,7 @@
 	memmove.s\
 	memset.s\
 	setjmp.s\
+	sqrt.s\
 	tas.s\
 
 CFILES=\
--- /dev/null
+++ b/sys/src/libc/arm64/sqrt.s
@@ -1,0 +1,4 @@
+TEXT	sqrt(SB), $0
+	FMOVD	a+0(FP), F0
+	FSQRTD	F0, F0
+	RETURN