kspread
kcalctype.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifdef HAVE_CONFIG_H
00028 #include "config.h"
00029 #endif
00030
00031 #ifndef KCALC_TYPE_H
00032 #define KCALC_TYPE_H
00033
00034
00035
00036
00037
00038
00039
00040 #ifdef HAVE_LONG_DOUBLE
00041 #undef HAVE_LONG_DOUBLE
00042 #endif
00043
00044 #ifdef HAVE_LONG_DOUBLE
00045
00046
00047
00048
00049
00050
00051
00052
00053 #define CALCAMNT long double
00054 #else
00055 #define CALCAMNT double
00056 #endif
00057
00058
00059 #ifdef HAVE_LONG_DOUBLE
00060 #define FABS(X) fabsl(X)
00061 #define MODF(X,Y) modfl(X,Y)
00062 #define FMOD(X,Y) fmodl(X,Y)
00063 #define SIN(X) sinl(X)
00064 #define ASIN(X) asinl(X)
00065 #define SINH(X) sinhl(X)
00066 #define ASINH(X) asinhl(X)
00067 #define COS(X) cosl(X)
00068 #define COSH(X) coshl(X)
00069 #define ACOS(X) acosl(X)
00070 #define ACOSH(X) acoshl(X)
00071 #define TAN(X) tanl(X)
00072 #define TANH(X) tanhl(X)
00073 #define ATAN(X) atanl(X)
00074 #define ATANH(X) atanhl(X)
00075 #define EXP(X) expl(X)
00076 #define POW(X,Y) powl(X,Y)
00077 #define LOG(X) logl(X)
00078 #define LOG_TEN(X) log10l(X)
00079 #define SQRT(X) sqrtl(X)
00080 #else
00081 #define FABS(X) fabs(X)
00082 #define MODF(X,Y) modf(X,Y)
00083 #define FMOD(X,Y) fmod(X,Y)
00084 #define SIN(X) sin(X)
00085 #define ASIN(X) asin(X)
00086 #define SINH(X) sinh(X)
00087 #define ASINH(X) asinh(X)
00088 #define COS(X) cos(X)
00089 #define COSH(X) cosh(X)
00090 #define ACOS(X) acos(X)
00091 #define ACOSH(X) acosh(X)
00092 #define TAN(X) tan(X)
00093 #define TANH(X) tanh(X)
00094 #define ATAN(X) atan(X)
00095 #define ATANH(X) atanh(X)
00096 #define EXP(X) exp(X)
00097 #define POW(X,Y) pow(X,Y)
00098 #define LOG(X) log(X)
00099 #define LOG_TEN(X) log10(X)
00100 #define SQRT(X) sqrt(X)
00101 #endif
00102
00103
00104 #endif
|