1 /* s_copysignf.c -- float version of s_copysign.c.
2 */
3
4 /*
5 * ====================================================
6 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
7 *
8 * Developed at SunPro, a Sun Microsystems, Inc. business.
9 * Permission to use, copy, modify, and distribute this
10 * software is freely granted, provided that this notice
11 * is preserved.
12 * ====================================================
13 */
14
15 #if defined (LIBM_SCCS) && ! defined (lint)
16 static char rcsid[] = "$NetBSD: s_copysignf.c,v 1.4 1995/05/10 20:46:59 jtc Exp $";
17 #endif
18
19 /*
20 * copysignf(float x, float y)
21 * copysignf(x,y) returns a value with the magnitude of x and
22 * with the sign bit of y.
23 */
24
25 #define NO_MATH_REDIRECT
26 #include <math.h>
27 #include <libm-alias-float.h>
28
29 float
__copysignf(float x,float y)30 __copysignf (float x, float y)
31 {
32 return __builtin_copysignf (x, y);
33 }
34 libm_alias_float (__copysign, copysign)
35