100db7afdSDavid E. O'Brien /* Copy sign of one number to another. */
200db7afdSDavid E. O'Brien
300db7afdSDavid E. O'Brien /* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
400db7afdSDavid E. O'Brien
500db7afdSDavid E. O'Brien This file is part of the GNU ISO C++ Library. This library is free
600db7afdSDavid E. O'Brien software; you can redistribute it and/or modify it under the
700db7afdSDavid E. O'Brien terms of the GNU General Public License as published by the
800db7afdSDavid E. O'Brien Free Software Foundation; either version 2, or (at your option)
900db7afdSDavid E. O'Brien any later version.
1000db7afdSDavid E. O'Brien
1100db7afdSDavid E. O'Brien This library is distributed in the hope that it will be useful,
1200db7afdSDavid E. O'Brien but WITHOUT ANY WARRANTY; without even the implied warranty of
1300db7afdSDavid E. O'Brien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1400db7afdSDavid E. O'Brien GNU General Public License for more details.
1500db7afdSDavid E. O'Brien
1600db7afdSDavid E. O'Brien You should have received a copy of the GNU General Public License along
1700db7afdSDavid E. O'Brien with this library; see the file COPYING. If not, write to the Free
18*f8a1b7d9SAlexander Kabaev Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
1900db7afdSDavid E. O'Brien USA.
2000db7afdSDavid E. O'Brien
2100db7afdSDavid E. O'Brien As a special exception, you may use this file as part of a free software
2200db7afdSDavid E. O'Brien library without restriction. Specifically, if other files instantiate
2300db7afdSDavid E. O'Brien templates or use macros or inline functions from this file, or you compile
2400db7afdSDavid E. O'Brien this file and link it with other files to produce an executable, this
2500db7afdSDavid E. O'Brien file does not by itself cause the resulting executable to be covered by
2600db7afdSDavid E. O'Brien the GNU General Public License. This exception does not however
2700db7afdSDavid E. O'Brien invalidate any other reasons why the executable file might be covered by
2800db7afdSDavid E. O'Brien the GNU General Public License. */
2900db7afdSDavid E. O'Brien
3000db7afdSDavid E. O'Brien
3100db7afdSDavid E. O'Brien #include <math.h>
3200db7afdSDavid E. O'Brien #include "mathconf.h"
3300db7afdSDavid E. O'Brien
3400db7afdSDavid E. O'Brien float
copysignf(float x,float y)3500db7afdSDavid E. O'Brien copysignf (float x, float y)
3600db7afdSDavid E. O'Brien {
3700db7afdSDavid E. O'Brien /* We use the double version. */
3800db7afdSDavid E. O'Brien return copysign (x, y);
3900db7afdSDavid E. O'Brien }
40