Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / m68k / m680x0 / fpu / s_scalbn.c
blob940c6b612c15c624febb67c48ddbe74aa9113bca
1 /* Copyright (C) 1996-2015 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
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/>. */
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
32 #ifndef suffix
33 #define suffix /*empty*/
34 #endif
35 #ifndef float_type
36 #define float_type double
37 #endif
39 #define __CONCATX(a,b) __CONCAT(a,b)
41 float_type
42 __CONCATX(__scalbn,suffix) (x, exp)
43 float_type x;
44 int exp;
46 return __m81_u(__CONCATX(__scalbn,suffix))(x, exp);
48 weak_alias (__CONCATX(__scalbn,suffix), __CONCATX(scalbn,suffix))
49 strong_alias (__CONCATX(__scalbn,suffix), __CONCATX(__scalbln,suffix))
51 #include <shlib-compat.h>
52 #if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_20)
53 compat_symbol (libc, __CONCATX(__scalbn,suffix), __CONCATX(scalbln,suffix),
54 GLIBC_2_1);
55 #endif