Blame sysdeps/ieee754/dbl-64/s_copysign.c

Packit 6c4009
/* @(#)s_copysign.c 5.1 93/09/24 */
Packit 6c4009
/*
Packit 6c4009
 * ====================================================
Packit 6c4009
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
Packit 6c4009
 *
Packit 6c4009
 * Developed at SunPro, a Sun Microsystems, Inc. business.
Packit 6c4009
 * Permission to use, copy, modify, and distribute this
Packit 6c4009
 * software is freely granted, provided that this notice
Packit 6c4009
 * is preserved.
Packit 6c4009
 * ====================================================
Packit 6c4009
 */
Packit 6c4009
Packit Bot c53556
#if defined (LIBM_SCCS) && ! defined (lint)
Packit 6c4009
static char rcsid[] = "$NetBSD: s_copysign.c,v 1.8 1995/05/10 20:46:57 jtc Exp $";
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/*
Packit 6c4009
 * copysign(double x, double y)
Packit 6c4009
 * copysign(x,y) returns a value with the magnitude of x and
Packit 6c4009
 * with the sign bit of y.
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#include <math.h>
Packit 6c4009
#include <libm-alias-double.h>
Packit 6c4009
Packit 6c4009
double
Packit 6c4009
__copysign (double x, double y)
Packit 6c4009
{
Packit Bot c53556
  return __builtin_copysign (x, y);
Packit 6c4009
}
Packit 6c4009
libm_alias_double (__copysign, copysign)