1/* $OpenBSD: s_tanf.S,v 1.4 2018/07/03 22:43:34 mortimer Exp $ */ 2/* 3 * Written by J.T. Conklin <jtc@NetBSD.org>. 4 * Public domain. 5 */ 6 7#include <machine/asm.h> 8 9#include "abi.h" 10 11/* A float's domain isn't large enough to require argument reduction. */ 12ENTRY(tanf) 13 RETGUARD_SETUP(tanf, r11) 14 XMM_ONE_ARG_FLOAT_PROLOGUE 15 flds ARG_FLOAT_ONE 16 fptan 17 fstp %st(0) 18 XMM_FLOAT_EPILOGUE 19 RETGUARD_CHECK(tanf, r11) 20 ret 21END(tanf) 22