.
[glibc-ports.git] / sysdeps / m68k / fpu / s_scalbn.c
blobd76d94d946ab2ab36e0fb33384341337e3f965da
1 /* Copyright (C) 1996, 1997 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, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #define scalbln __no_scalbln_decl
20 #define scalblnf __no_scalblnf_decl
21 #define scalblnl __no_scalblnl_decl
22 #define __scalbln __no__scalbln_decl
23 #define __scalblnf __no__scalblnf_decl
24 #define __scalblnl __no__scalblnl_decl
25 #include <math.h>
26 #undef scalbln
27 #undef scalblnf
28 #undef scalblnl
29 #undef __scalbln
30 #undef __scalblnf
31 #undef __scalblnl
33 #ifndef suffix
34 #define suffix /*empty*/
35 #endif
36 #ifndef float_type
37 #define float_type double
38 #endif
40 #define __CONCATX(a,b) __CONCAT(a,b)
42 float_type
43 __CONCATX(__scalbn,suffix) (x, exp)
44 float_type x;
45 int exp;
47 return __m81_u(__CONCATX(__scalbn,suffix))(x, exp);
50 #define weak_aliasx(a,b) weak_alias(a,b)
51 #define strong_aliasx(a,b) strong_alias(a,b)
52 weak_aliasx (__CONCATX(__scalbn,suffix), __CONCATX(scalbn,suffix))
53 strong_aliasx (__CONCATX(__scalbn,suffix), __CONCATX(__scalbln,suffix))
54 weak_aliasx (__CONCATX(__scalbn,suffix), __CONCATX(scalbln,suffix))