1997-03-04 05:53:20 +00:00
|
|
|
/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:56:23 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
1997-03-04 05:53:20 +00:00
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:56:23 +00:00
|
|
|
Lesser General Public License for more details.
|
1997-03-04 05:53:20 +00:00
|
|
|
|
2001-07-06 04:56:23 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-03-09 23:56:38 +00:00
|
|
|
License along with the GNU C Library. If not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1997-03-04 05:53:20 +00:00
|
|
|
|
1997-10-26 19:59:09 +00:00
|
|
|
#define scalbln __no_scalbln_decl
|
|
|
|
#define scalblnf __no_scalblnf_decl
|
|
|
|
#define scalblnl __no_scalblnl_decl
|
|
|
|
#define __scalbln __no__scalbln_decl
|
|
|
|
#define __scalblnf __no__scalblnf_decl
|
|
|
|
#define __scalblnl __no__scalblnl_decl
|
1996-09-20 01:57:51 +00:00
|
|
|
#include <math.h>
|
1997-10-26 19:59:09 +00:00
|
|
|
#undef scalbln
|
|
|
|
#undef scalblnf
|
|
|
|
#undef scalblnl
|
|
|
|
#undef __scalbln
|
|
|
|
#undef __scalblnf
|
|
|
|
#undef __scalblnl
|
|
|
|
|
|
|
|
#ifndef suffix
|
|
|
|
#define suffix /*empty*/
|
1996-09-20 01:57:51 +00:00
|
|
|
#endif
|
|
|
|
#ifndef float_type
|
|
|
|
#define float_type double
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define __CONCATX(a,b) __CONCAT(a,b)
|
|
|
|
|
|
|
|
float_type
|
1997-10-26 19:59:09 +00:00
|
|
|
__CONCATX(__scalbn,suffix) (x, exp)
|
1997-03-04 05:53:20 +00:00
|
|
|
float_type x;
|
1997-10-26 19:59:09 +00:00
|
|
|
int exp;
|
1996-09-20 01:57:51 +00:00
|
|
|
{
|
1997-10-26 19:59:09 +00:00
|
|
|
return __m81_u(__CONCATX(__scalbn,suffix))(x, exp);
|
1996-09-20 01:57:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#define weak_aliasx(a,b) weak_alias(a,b)
|
1997-10-26 19:59:09 +00:00
|
|
|
#define strong_aliasx(a,b) strong_alias(a,b)
|
|
|
|
weak_aliasx (__CONCATX(__scalbn,suffix), __CONCATX(scalbn,suffix))
|
|
|
|
strong_aliasx (__CONCATX(__scalbn,suffix), __CONCATX(__scalbln,suffix))
|
|
|
|
weak_aliasx (__CONCATX(__scalbn,suffix), __CONCATX(scalbln,suffix))
|