Update contrib.
3 * Portions Copyright (c) 1993-2005 Nokia Corporation and/or its subsidiary(-ies).
8 /* @(#)s_fabs.c 5.1 93/09/24 */
10 * ====================================================
11 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
13 * Developed at SunPro, a Sun Microsystems, Inc. business.
14 * Permission to use, copy, modify, and distribute this
15 * software is freely granted, provided that this notice
17 * ====================================================
22 <<fabs>>, <<fabsf>>---absolute value (magnitude)
30 double fabs(double <[x]>);
31 float fabsf(float <[x]>);
42 <<fabs>> and <<fabsf>> calculate
46 the absolute value (magnitude) of the argument <[x]>, by direct
47 manipulation of the bit representation of <[x]>.
50 The calculated value is returned. No errors are detected.
54 <<fabsf>> is an extension.
59 * fabs(x) returns the absolute value of x.
65 Return absolute value of floating-point.
66 Returns the absoulte value of parameter x. /x/
67 @return Absoulte value of x.
68 @param x Floating point value.
70 EXPORT_C double fabs(double x) __SOFTFP
73 GET_HIGH_WORD(high,x);
74 SET_HIGH_WORD(x,high&0x7fffffff);