diff options
author | Etienne M. Gagnon <etienne.gagnon@uqam.ca> | 2004-03-27 18:34:15 +0000 |
---|---|---|
committer | Etienne M. Gagnon <etienne.gagnon@uqam.ca> | 2004-03-27 18:34:15 +0000 |
commit | e95f3e9f0dda344ef5da881858e60124a70584c2 (patch) | |
tree | f9f225bd0f48ba4e2d58233b850bf0dadf4a7355 /native/fdlibm/fdlibm.h | |
parent | 3caf373d8bcb6455af0631c36006ea103516303f (diff) | |
download | classpath-e95f3e9f0dda344ef5da881858e60124a70584c2.tar.gz |
2004-03-27 Etienne M. Gagnon <gagnon.etienne_m@uqam.ca>
* native/fdlibm/dtoa.c, native/fdlibm/e_acos.c,
native/fdlibm/e_asin.c, native/fdlibm/e_atan2.c,
native/fdlibm/e_exp.c, native/fdlibm/e_fmod.c,
native/fdlibm/e_log.c, native/fdlibm/e_pow.c,
native/fdlibm/e_rem_pio2.c, native/fdlibm/e_remainder.c,
native/fdlibm/e_scalb.c, native/fdlibm/e_sqrt.c,
native/fdlibm/fdlibm.h, native/fdlibm/k_cos.c,
native/fdlibm/k_rem_pio2.c, native/fdlibm/k_sin.c,
native/fdlibm/k_tan.c, native/fdlibm/mprec.c,
native/fdlibm/mprec.h, native/fdlibm/s_atan.c,
native/fdlibm/s_ceil.c, native/fdlibm/s_copysign.c,
native/fdlibm/s_cos.c, native/fdlibm/s_fabs.c,
native/fdlibm/s_floor.c, native/fdlibm/s_rint.c,
native/fdlibm/s_scalbn.c, native/fdlibm/s_sin.c,
native/fdlibm/s_tan.c, native/fdlibm/sf_fabs.c,
native/fdlibm/sf_rint.c, native/fdlibm/strtod.c,
native/fdlibm/w_acos.c, native/fdlibm/w_asin.c,
native/fdlibm/w_atan2.c, native/fdlibm/w_exp.c,
native/fdlibm/w_fmod.c, native/fdlibm/w_log.c,
native/fdlibm/w_pow.c, native/fdlibm/w_remainder.c,
native/fdlibm/w_sqrt.c, native/jni/classpath/jcl.c,
native/jni/classpath/jcl.h, native/jni/classpath/jnilink.c,
native/jni/classpath/jnilink.h,
native/jni/classpath/native_state.c,
native/jni/classpath/native_state.h,
native/jni/classpath/primlib.c, native/jni/classpath/primlib.h,
native/jni/gtk-peer/gdkfont.h,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c,
native/jni/gtk-peer/gthread-jni.c, native/jni/gtk-peer/gtkpeer.h,
native/jni/java-awt/gnu_java_awt_EmbeddedWindow.c,
native/jni/java-io/FileDescriptor.c,
native/jni/java-io/java_io_File.c,
native/jni/java-io/java_io_ObjectInputStream.c,
native/jni/java-io/java_io_VMObjectStreamClass.c,
native/jni/java-io/javaio.c, native/jni/java-io/javaio.h,
native/jni/java-lang/java_lang_Double.c,
native/jni/java-lang/java_lang_Math.c,
native/jni/java-lang/java_lang_Object.c,
native/jni/java-lang/java_lang_VMDouble.c,
native/jni/java-lang/java_lang_VMFloat.c,
native/jni/java-lang/java_lang_VMSystem.c,
native/jni/java-lang/java_lang_reflect_Array.c,
native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c,
native/jni/java-net/gnu_java_net_PlainSocketImpl.c,
native/jni/java-net/java_net_InetAddress.c,
native/jni/java-net/java_net_NetworkInterface.c,
native/jni/java-net/javanet.c, native/jni/java-net/javanet.h,
native/jni/java-nio/gnu_java_nio_NIOServerSocket.c,
native/jni/java-nio/java_nio.c,
native/jni/java-nio/java_nio_DirectByteBufferImpl.c,
native/jni/java-nio/java_nio_FileChannelImpl.c,
native/jni/java-nio/java_nio_FileLockImpl.c,
native/jni/java-util/java_util_TimeZone.c,
native/target/Linux/target_native.h,
native/target/Linux/target_native_file.h,
native/target/Linux/target_native_io.h,
native/target/Linux/target_native_math_float.h,
native/target/Linux/target_native_math_int.h,
native/target/Linux/target_native_misc.h,
native/target/Linux/target_native_network.h,
native/target/generic/target_generic.h,
native/target/generic/target_generic_file.h,
native/target/generic/target_generic_io.h,
native/target/generic/target_generic_math_float.h,
native/target/generic/target_generic_math_int.h,
native/target/generic/target_generic_misc.h,
native/target/generic/target_generic_network.h,
native/testsuite/guile-jvm.c, native/vmi/vmi.c, native/vmi/vmi.h:
Indented using GNU indent.
Diffstat (limited to 'native/fdlibm/fdlibm.h')
-rw-r--r-- | native/fdlibm/fdlibm.h | 303 |
1 files changed, 153 insertions, 150 deletions
diff --git a/native/fdlibm/fdlibm.h b/native/fdlibm/fdlibm.h index 0e72086f2..4bca5ba07 100644 --- a/native/fdlibm/fdlibm.h +++ b/native/fdlibm/fdlibm.h @@ -49,170 +49,173 @@ * (one may replace the following line by "#include <values.h>") */ -#define X_TLOSS 1.41484755040568800000e+16 +#define X_TLOSS 1.41484755040568800000e+16 /* These typedefs are true for the targets running Java. */ #define _IEEE_LIBM #ifdef __cplusplus -extern "C" { +extern "C" +{ #endif /* * ANSI/POSIX */ -extern double acos __P((double)); -extern double asin __P((double)); -extern double atan __P((double)); -extern double atan2 __P((double, double)); -extern double cos __P((double)); -extern double sin __P((double)); -extern double tan __P((double)); - -extern double cosh __P((double)); -extern double sinh __P((double)); -extern double tanh __P((double)); - -extern double exp __P((double)); -extern double frexp __P((double, int *)); -extern double ldexp __P((double, int)); -extern double log __P((double)); -extern double log10 __P((double)); -extern double modf __P((double, double *)); - -extern double pow __P((double, double)); -extern double sqrt __P((double)); - -extern double ceil __P((double)); -extern double fabs __P((double)); -extern double floor __P((double)); -extern double fmod __P((double, double)); - -extern double erf __P((double)); -extern double erfc __P((double)); -extern double gamma __P((double)); -extern double hypot __P((double, double)); -extern int isnan __P((double)); -extern int finite __P((double)); -extern double j0 __P((double)); -extern double j1 __P((double)); -extern double jn __P((int, double)); -extern double lgamma __P((double)); -extern double y0 __P((double)); -extern double y1 __P((double)); -extern double yn __P((int, double)); - -extern double acosh __P((double)); -extern double asinh __P((double)); -extern double atanh __P((double)); -extern double cbrt __P((double)); -extern double logb __P((double)); -extern double nextafter __P((double, double)); -extern double remainder __P((double, double)); + extern double acos __P ((double)); + extern double asin __P ((double)); + extern double atan __P ((double)); + extern double atan2 __P ((double, double)); + extern double cos __P ((double)); + extern double sin __P ((double)); + extern double tan __P ((double)); + + extern double cosh __P ((double)); + extern double sinh __P ((double)); + extern double tanh __P ((double)); + + extern double exp __P ((double)); + extern double frexp __P ((double, int *)); + extern double ldexp __P ((double, int)); + extern double log __P ((double)); + extern double log10 __P ((double)); + extern double modf __P ((double, double *)); + + extern double pow __P ((double, double)); + extern double sqrt __P ((double)); + + extern double ceil __P ((double)); + extern double fabs __P ((double)); + extern double floor __P ((double)); + extern double fmod __P ((double, double)); + + extern double erf __P ((double)); + extern double erfc __P ((double)); + extern double gamma __P ((double)); + extern double hypot __P ((double, double)); + extern int isnan __P ((double)); + extern int finite __P ((double)); + extern double j0 __P ((double)); + extern double j1 __P ((double)); + extern double jn __P ((int, double)); + extern double lgamma __P ((double)); + extern double y0 __P ((double)); + extern double y1 __P ((double)); + extern double yn __P ((int, double)); + + extern double acosh __P ((double)); + extern double asinh __P ((double)); + extern double atanh __P ((double)); + extern double cbrt __P ((double)); + extern double logb __P ((double)); + extern double nextafter __P ((double, double)); + extern double remainder __P ((double, double)); /* Functions that are not documented, and are not in <math.h>. */ -extern double logb __P((double)); + extern double logb __P ((double)); #ifdef _SCALB_INT -extern double scalb __P((double, int)); + extern double scalb __P ((double, int)); #else -extern double scalb __P((double, double)); + extern double scalb __P ((double, double)); #endif -extern double significand __P((double)); + extern double significand __P ((double)); /* ieee style elementary functions */ -extern double __ieee754_sqrt __P((double)); -extern double __ieee754_acos __P((double)); -extern double __ieee754_acosh __P((double)); -extern double __ieee754_log __P((double)); -extern double __ieee754_atanh __P((double)); -extern double __ieee754_asin __P((double)); -extern double __ieee754_atan2 __P((double,double)); -extern double __ieee754_exp __P((double)); -extern double __ieee754_cosh __P((double)); -extern double __ieee754_fmod __P((double,double)); -extern double __ieee754_pow __P((double,double)); -extern double __ieee754_lgamma_r __P((double,int *)); -extern double __ieee754_gamma_r __P((double,int *)); -extern double __ieee754_log10 __P((double)); -extern double __ieee754_sinh __P((double)); -extern double __ieee754_hypot __P((double,double)); -extern double __ieee754_j0 __P((double)); -extern double __ieee754_j1 __P((double)); -extern double __ieee754_y0 __P((double)); -extern double __ieee754_y1 __P((double)); -extern double __ieee754_jn __P((int,double)); -extern double __ieee754_yn __P((int,double)); -extern double __ieee754_remainder __P((double,double)); -extern int32_t __ieee754_rem_pio2 __P((double,double*)); + extern double __ieee754_sqrt __P ((double)); + extern double __ieee754_acos __P ((double)); + extern double __ieee754_acosh __P ((double)); + extern double __ieee754_log __P ((double)); + extern double __ieee754_atanh __P ((double)); + extern double __ieee754_asin __P ((double)); + extern double __ieee754_atan2 __P ((double, double)); + extern double __ieee754_exp __P ((double)); + extern double __ieee754_cosh __P ((double)); + extern double __ieee754_fmod __P ((double, double)); + extern double __ieee754_pow __P ((double, double)); + extern double __ieee754_lgamma_r __P ((double, int *)); + extern double __ieee754_gamma_r __P ((double, int *)); + extern double __ieee754_log10 __P ((double)); + extern double __ieee754_sinh __P ((double)); + extern double __ieee754_hypot __P ((double, double)); + extern double __ieee754_j0 __P ((double)); + extern double __ieee754_j1 __P ((double)); + extern double __ieee754_y0 __P ((double)); + extern double __ieee754_y1 __P ((double)); + extern double __ieee754_jn __P ((int, double)); + extern double __ieee754_yn __P ((int, double)); + extern double __ieee754_remainder __P ((double, double)); + extern int32_t __ieee754_rem_pio2 __P ((double, double *)); #ifdef _SCALB_INT -extern double __ieee754_scalb __P((double,int)); + extern double __ieee754_scalb __P ((double, int)); #else -extern double __ieee754_scalb __P((double,double)); + extern double __ieee754_scalb __P ((double, double)); #endif /* fdlibm kernel function */ -extern double __kernel_standard __P((double,double,int)); -extern double __kernel_sin __P((double,double,int)); -extern double __kernel_cos __P((double,double)); -extern double __kernel_tan __P((double,double,int)); -extern int __kernel_rem_pio2 __P((double*,double*,int,int,int,const int32_t*)); + extern double __kernel_standard __P ((double, double, int)); + extern double __kernel_sin __P ((double, double, int)); + extern double __kernel_cos __P ((double, double)); + extern double __kernel_tan __P ((double, double, int)); + extern int __kernel_rem_pio2 + __P ((double *, double *, int, int, int, const int32_t *)); /* Undocumented float functions. */ -extern float logbf __P((float)); + extern float logbf __P ((float)); #ifdef _SCALB_INT -extern float scalbf __P((float, int)); + extern float scalbf __P ((float, int)); #else -extern float scalbf __P((float, float)); + extern float scalbf __P ((float, float)); #endif -extern float significandf __P((float)); + extern float significandf __P ((float)); /* * Functions callable from C, intended to support IEEE arithmetic. */ -extern double copysign __P((double, double)); -extern int ilogb __P((double)); -extern double rint __P((double)); -extern float rintf __P((float)); -extern double scalbn __P((double, int)); + extern double copysign __P ((double, double)); + extern int ilogb __P ((double)); + extern double rint __P ((double)); + extern float rintf __P ((float)); + extern double scalbn __P ((double, int)); /* ieee style elementary float functions */ -extern float __ieee754_sqrtf __P((float)); -extern float __ieee754_acosf __P((float)); -extern float __ieee754_acoshf __P((float)); -extern float __ieee754_logf __P((float)); -extern float __ieee754_atanhf __P((float)); -extern float __ieee754_asinf __P((float)); -extern float __ieee754_atan2f __P((float,float)); -extern float __ieee754_expf __P((float)); -extern float __ieee754_coshf __P((float)); -extern float __ieee754_fmodf __P((float,float)); -extern float __ieee754_powf __P((float,float)); -extern float __ieee754_lgammaf_r __P((float,int *)); -extern float __ieee754_gammaf_r __P((float,int *)); -extern float __ieee754_log10f __P((float)); -extern float __ieee754_sinhf __P((float)); -extern float __ieee754_hypotf __P((float,float)); -extern float __ieee754_j0f __P((float)); -extern float __ieee754_j1f __P((float)); -extern float __ieee754_y0f __P((float)); -extern float __ieee754_y1f __P((float)); -extern float __ieee754_jnf __P((int,float)); -extern float __ieee754_ynf __P((int,float)); -extern float __ieee754_remainderf __P((float,float)); -extern int32_t __ieee754_rem_pio2f __P((float,float*)); + extern float __ieee754_sqrtf __P ((float)); + extern float __ieee754_acosf __P ((float)); + extern float __ieee754_acoshf __P ((float)); + extern float __ieee754_logf __P ((float)); + extern float __ieee754_atanhf __P ((float)); + extern float __ieee754_asinf __P ((float)); + extern float __ieee754_atan2f __P ((float, float)); + extern float __ieee754_expf __P ((float)); + extern float __ieee754_coshf __P ((float)); + extern float __ieee754_fmodf __P ((float, float)); + extern float __ieee754_powf __P ((float, float)); + extern float __ieee754_lgammaf_r __P ((float, int *)); + extern float __ieee754_gammaf_r __P ((float, int *)); + extern float __ieee754_log10f __P ((float)); + extern float __ieee754_sinhf __P ((float)); + extern float __ieee754_hypotf __P ((float, float)); + extern float __ieee754_j0f __P ((float)); + extern float __ieee754_j1f __P ((float)); + extern float __ieee754_y0f __P ((float)); + extern float __ieee754_y1f __P ((float)); + extern float __ieee754_jnf __P ((int, float)); + extern float __ieee754_ynf __P ((int, float)); + extern float __ieee754_remainderf __P ((float, float)); + extern int32_t __ieee754_rem_pio2f __P ((float, float *)); #ifdef _SCALB_INT -extern float __ieee754_scalbf __P((float,int)); + extern float __ieee754_scalbf __P ((float, int)); #else -extern float __ieee754_scalbf __P((float,float)); + extern float __ieee754_scalbf __P ((float, float)); #endif /* float versions of fdlibm kernel functions */ -extern float __kernel_sinf __P((float,float,int)); -extern float __kernel_cosf __P((float,float)); -extern float __kernel_tanf __P((float,float,int)); -extern int __kernel_rem_pio2f __P((float*,float*,int,int,int,const int32_t*)); + extern float __kernel_sinf __P ((float, float, int)); + extern float __kernel_cosf __P ((float, float)); + extern float __kernel_tanf __P ((float, float, int)); + extern int __kernel_rem_pio2f + __P ((float *, float *, int, int, int, const int32_t *)); /* The original code used statements like n0 = ((*(int*)&one)>>29)^1; * index of high word * @@ -227,7 +230,7 @@ extern int __kernel_rem_pio2f __P((float*,float*,int,int,int,const int32_t*)); #ifndef __IEEE_BIG_ENDIAN #ifndef __IEEE_LITTLE_ENDIAN - #error Must define endianness +#error Must define endianness #endif #endif @@ -236,31 +239,31 @@ extern int __kernel_rem_pio2f __P((float*,float*,int,int,int,const int32_t*)); #ifdef __IEEE_BIG_ENDIAN -typedef union _ieee_double_shape_type_union ieee_double_shape_type; -union _ieee_double_shape_type_union -{ - double value; - struct + typedef union _ieee_double_shape_type_union ieee_double_shape_type; + union _ieee_double_shape_type_union { - uint32_t msw; - uint32_t lsw; - } parts; -}; + double value; + struct + { + uint32_t msw; + uint32_t lsw; + } parts; + }; #endif #ifdef __IEEE_LITTLE_ENDIAN -typedef union _ieee_double_shape_type_union ieee_double_shape_type; -union _ieee_double_shape_type_union -{ - double value; - struct + typedef union _ieee_double_shape_type_union ieee_double_shape_type; + union _ieee_double_shape_type_union { - uint32_t lsw; - uint32_t msw; - } parts; -}; + double value; + struct + { + uint32_t lsw; + uint32_t msw; + } parts; + }; #endif @@ -325,12 +328,12 @@ do { \ /* A union which permits us to convert between a float and a 32 bit int. */ -typedef union _ieee_float_shape_type_union ieee_float_shape_type; -union _ieee_float_shape_type_union -{ - float value; - uint32_t word; -}; + typedef union _ieee_float_shape_type_union ieee_float_shape_type; + union _ieee_float_shape_type_union + { + float value; + uint32_t word; + }; /* Get a 32 bit int from a float. */ @@ -354,4 +357,4 @@ do { \ } #endif -#endif /* __CLASSPATH_FDLIBM_H__ */ +#endif /* __CLASSPATH_FDLIBM_H__ */ |