Update copyright notices with scripts/update-copyrights.
[jlayton/glibc.git] / ports / sysdeps / m68k / m680x0 / fpu / s_scalbn.c
1 /* Copyright (C) 1996-2013 Free Software Foundation, Inc.
2    This file is part of the GNU C Library.
3
4    The GNU C Library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Lesser General Public
6    License as published by the Free Software Foundation; either
7    version 2.1 of the License, or (at your option) any later version.
8
9    The GNU C Library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    Lesser General Public License for more details.
13
14    You should have received a copy of the GNU Lesser General Public
15    License along with the GNU C Library.  If not, see
16    <http://www.gnu.org/licenses/>.  */
17
18 #define scalbln __no_scalbln_decl
19 #define scalblnf __no_scalblnf_decl
20 #define scalblnl __no_scalblnl_decl
21 #define __scalbln __no__scalbln_decl
22 #define __scalblnf __no__scalblnf_decl
23 #define __scalblnl __no__scalblnl_decl
24 #include <math.h>
25 #undef scalbln
26 #undef scalblnf
27 #undef scalblnl
28 #undef __scalbln
29 #undef __scalblnf
30 #undef __scalblnl
31
32 #ifndef suffix
33 #define suffix /*empty*/
34 #endif
35 #ifndef float_type
36 #define float_type double
37 #endif
38
39 #define __CONCATX(a,b) __CONCAT(a,b)
40
41 float_type
42 __CONCATX(__scalbn,suffix) (x, exp)
43      float_type x;
44      int exp;
45 {
46   return __m81_u(__CONCATX(__scalbn,suffix))(x, exp);
47 }
48 weak_alias (__CONCATX(__scalbn,suffix), __CONCATX(scalbn,suffix))
49 strong_alias (__CONCATX(__scalbn,suffix), __CONCATX(__scalbln,suffix))
50 weak_alias (__CONCATX(__scalbn,suffix), __CONCATX(scalbln,suffix))