Update.
[platform/upstream/glibc.git] / sysdeps / m68k / fpu / s_scalbn.c
1 /* Copyright (C) 1996, 1997 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 Library General Public License as
6    published by the Free Software Foundation; either version 2 of the
7    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    Library General Public License for more details.
13
14    You should have received a copy of the GNU Library General Public
15    License along with the GNU C Library; see the file COPYING.LIB.  If not,
16    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17    Boston, MA 02111-1307, USA.  */
18
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
32
33 #ifndef suffix
34 #define suffix /*empty*/
35 #endif
36 #ifndef float_type
37 #define float_type double
38 #endif
39
40 #define __CONCATX(a,b) __CONCAT(a,b)
41
42 float_type
43 __CONCATX(__scalbn,suffix) (x, exp)
44      float_type x;
45      int exp;
46 {
47   return __m81_u(__CONCATX(__scalbn,suffix))(x, exp);
48 }
49
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))