|
Packit Service |
82fcde |
/* file: scalblnf.c */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
// Copyright (c) 2000, 2001, Intel Corporation
|
|
Packit Service |
82fcde |
// All rights reserved.
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
// Contributed 2000 by the Intel Numerics Group, Intel Corporation
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
// Redistribution and use in source and binary forms, with or without
|
|
Packit Service |
82fcde |
// modification, are permitted provided that the following conditions are
|
|
Packit Service |
82fcde |
// met:
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
// * Redistributions of source code must retain the above copyright
|
|
Packit Service |
82fcde |
// notice, this list of conditions and the following disclaimer.
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
// * Redistributions in binary form must reproduce the above copyright
|
|
Packit Service |
82fcde |
// notice, this list of conditions and the following disclaimer in the
|
|
Packit Service |
82fcde |
// documentation and/or other materials provided with the distribution.
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
// * The name of Intel Corporation may not be used to endorse or promote
|
|
Packit Service |
82fcde |
// products derived from this software without specific prior written
|
|
Packit Service |
82fcde |
// permission.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
Packit Service |
82fcde |
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
Packit Service |
82fcde |
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
Packit Service |
82fcde |
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS
|
|
Packit Service |
82fcde |
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
Packit Service |
82fcde |
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
Packit Service |
82fcde |
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
Packit Service |
82fcde |
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
|
Packit Service |
82fcde |
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING
|
|
Packit Service |
82fcde |
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
Packit Service |
82fcde |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
// Intel Corporation is the author of this code, and requests that all
|
|
Packit Service |
82fcde |
// problem reports or change requests be submitted to it directly at
|
|
Packit Service |
82fcde |
// http://www.intel.com/software/products/opensource/libraries/num.htm.
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
//
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include "libm_support.h"
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
float __libm_scalblnf(float, long int, int);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
float scalblnf(float x, long int n)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#ifdef SIZE_LONG_INT_64
|
|
Packit Service |
82fcde |
return __libm_scalblnf(x,n,1);
|
|
Packit Service |
82fcde |
#else
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#ifdef SIZE_LONG_INT_32
|
|
Packit Service |
82fcde |
return __libm_scalblnf(x,n,0);
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
libm_alias_float_other (scalbln, scalbln)
|