shithub: riscv

ref: 65ef69a85d1c0f4694a361f5a0a99bdbb4f2cd95
dir: /sys/src/libc/386/sqrt.s/

View raw version
TEXT	sqrt(SB), $0
	FMOVD	a+0(FP), F0

	FTST
	WAIT
	FSTSW	AX
	SAHF
	JLO	bad

	FSQRT
	RET

bad:
	FMOVDP	F0, F0
	CALL	NaN(SB)
	RET