1/* $NetBSD: w_asinf.c,v 1.9 2024/06/09 13:35:38 riastradh Exp $ */ 2 3/* 4 * w_asinf.c -- float version of w_asin.c. 5 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com. 6 */ 7 8/* 9 * ==================================================== 10 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 11 * 12 * Developed at SunPro, a Sun Microsystems, Inc. business. 13 * Permission to use, copy, modify, and distribute this 14 * software is freely granted, provided that this notice 15 * is preserved. 16 * ==================================================== 17 */ 18 19#include <sys/cdefs.h> 20#if defined(LIBM_SCCS) && !defined(lint) 21__RCSID("$NetBSD: w_asinf.c,v 1.9 2024/06/09 13:35:38 riastradh Exp $"); 22#endif 23 24/* 25 * wrapper asinf(x) 26 */ 27 28#include "namespace.h" 29 30#include "math.h" 31#include "math_private.h" 32 33__weak_alias(asinf, _asinf) 34 35float 36asinf(float x) /* wrapper asinf */ 37{ 38#ifdef _IEEE_LIBM 39 return __ieee754_asinf(x); 40#else 41 float z; 42 z = __ieee754_asinf(x); 43 if(_LIB_VERSION == _IEEE_ || isnanf(x)) return z; 44 if(fabsf(x)>(float)1.0) { 45 /* asinf(|x|>1) */ 46 return (float)__kernel_standard((double)x,(double)x,102); 47 } else 48 return z; 49#endif 50} 51