Update contrib.
3 * Portions Copyright (c) 1993-1999 Nokia Corporation and/or its subsidiary(-ies).
8 /* @(#)s_copysign.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 <<copysign>>, <<copysignf>>---sign of <[y]>, magnitude of <[x]>
31 double copysign (double <[x]>, double <[y]>);
32 float copysignf (float <[x]>, float <[y]>);
36 double copysign (<[x]>, <[y]>)
40 float copysignf (<[x]>, <[y]>)
45 <<copysign>> constructs a number with the magnitude (absolute value)
46 of its first argument, <[x]>, and the sign of its second argument,
49 <<copysignf>> does the same thing; the two functions differ only in
50 the type of their arguments and result.
53 <<copysign>> returns a <<double>> with the magnitude of
54 <[x]> and the sign of <[y]>.
55 <<copysignf>> returns a <<float>> with the magnitude of
56 <[x]> and the sign of <[y]>.
59 <<copysign>> is not required by either ANSI C or the System V Interface
65 * copysign(double x, double y)
66 * copysign(x,y) returns a value with the magnitude of x and
67 * with the sign bit of y.
73 Constructs a number with the magnitude (absolute value)
74 of its first argument, x, and the sign of its second argument y.
75 @return a value with the magnitude of x and with the sign bit of y.
79 EXPORT_C double copysign(double x, double y) __SOFTFP
84 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));