/* $OpenBSD: e_remainder.S,v 1.5 2018/07/03 22:43:34 mortimer Exp $ */ /* * Written by J.T. Conklin . * Public domain. */ #include #include "abi.h" ENTRY(remainder) RETGUARD_SETUP(remainder, r11) XMM_TWO_ARG_DOUBLE_PROLOGUE fldl ARG_DOUBLE_TWO fldl ARG_DOUBLE_ONE 1: fprem1 fstsw %ax btw $10,%ax jc 1b fstp %st(1) XMM_DOUBLE_EPILOGUE RETGUARD_CHECK(remainder, r11) ret END_STD(remainder)