Path: blob/master/src/java.base/share/native/libfdlibm/jfdlibm.h
41152 views
/*1* Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#ifndef _JFDLIBM_H26#define _JFDLIBM_H2728#define _IEEE_LIBM2930/*31* In order to resolve the conflict between fdlibm and compilers32* (such as keywords and built-in functions), the following33* function names have to be re-mapped.34*/3536#define huge HUGE_NUMBER37#define acos jacos38#define asin jasin39#define atan jatan40#define atan2 jatan241#define cos jcos42#define exp jexp43#define log jlog44#define log10 jlog1045#define pow jpow46#define sin jsin47#define sqrt jsqrt48#define cbrt jcbrt49#define tan jtan50#define floor jfloor51#define ceil jceil52#define cosh jcosh53#define fmod jmod54#define log10 jlog1055#define sinh jsinh56#define fabs jfabs57#define tanh jtanh58#define remainder jremainder59#define hypot jhypot60#define log1p jlog1p61#define expm1 jexpm16263#if defined(__linux__) || defined(_ALLBSD_SOURCE)64#define __ieee754_sqrt __j__ieee754_sqrt65#define __ieee754_acos __j__ieee754_acos66#define __ieee754_log __j__ieee754_log67#define __ieee754_atanh __j__ieee754_atanh68#define __ieee754_asin __j__ieee754_asin69#define __ieee754_atan2 __j__ieee754_atan270#define __ieee754_exp __j__ieee754_exp71#define __ieee754_cosh __j__ieee754_cosh72#define __ieee754_fmod __j__ieee754_fmod73#define __ieee754_pow __j__ieee754_pow74#define __ieee754_log10 __j__ieee754_log1075#define __ieee754_sinh __j__ieee754_sinh76#define __ieee754_hypot __j__ieee754_hypot77#define __ieee754_remainder __j__ieee754_remainder78#define __ieee754_rem_pio2 __j__ieee754_rem_pio279#define __ieee754_scalb __j__ieee754_scalb80#define __kernel_standard __j__kernel_standard81#define __kernel_sin __j__kernel_sin82#define __kernel_cos __j__kernel_cos83#define __kernel_tan __j__kernel_tan84#define __kernel_rem_pio2 __j__kernel_rem_pio285#define __ieee754_log1p __j__ieee754_log1p86#define __ieee754_expm1 __j__ieee754_expm187#endif88#endif/*_JFDLIBM_H*/899091