kcalctype.h
00001
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 #ifdef HAVE_CONFIG_H
00027 #include "config.h"
00028 #endif
00029
00030 #ifndef KCALC_TYPE_H
00031 #define KCALC_TYPE_H
00032
00033
00034
00035
00036
00037
00038
00039 #ifdef HAVE_LONG_DOUBLE
00040 #undef HAVE_LONG_DOUBLE
00041 #endif
00042
00043 #ifdef HAVE_LONG_DOUBLE
00044
00045
00046
00047
00048
00049
00050
00051
00052 #define CALCAMNT long double
00053 #else
00054 #define CALCAMNT double
00055 #endif
00056
00057
00058 #ifdef HAVE_LONG_DOUBLE
00059 #define FABS(X) fabsl(X)
00060 #define MODF(X,Y) modfl(X,Y)
00061 #define FMOD(X,Y) fmodl(X,Y)
00062 #define SIN(X) sinl(X)
00063 #define ASIN(X) asinl(X)
00064 #define SINH(X) sinhl(X)
00065 #define ASINH(X) asinhl(X)
00066 #define COS(X) cosl(X)
00067 #define COSH(X) coshl(X)
00068 #define ACOS(X) acosl(X)
00069 #define ACOSH(X) acoshl(X)
00070 #define TAN(X) tanl(X)
00071 #define TANH(X) tanhl(X)
00072 #define ATAN(X) atanl(X)
00073 #define ATANH(X) atanhl(X)
00074 #define EXP(X) expl(X)
00075 #define POW(X,Y) powl(X,Y)
00076 #define LOG(X) logl(X)
00077 #define LOG_TEN(X) log10l(X)
00078 #define SQRT(X) sqrtl(X)
00079 #else
00080 #define FABS(X) fabs(X)
00081 #define MODF(X,Y) modf(X,Y)
00082 #define FMOD(X,Y) fmod(X,Y)
00083 #define SIN(X) sin(X)
00084 #define ASIN(X) asin(X)
00085 #define SINH(X) sinh(X)
00086 #define ASINH(X) asinh(X)
00087 #define COS(X) cos(X)
00088 #define COSH(X) cosh(X)
00089 #define ACOS(X) acos(X)
00090 #define ACOSH(X) acosh(X)
00091 #define TAN(X) tan(X)
00092 #define TANH(X) tanh(X)
00093 #define ATAN(X) atan(X)
00094 #define ATANH(X) atanh(X)
00095 #define EXP(X) exp(X)
00096 #define POW(X,Y) pow(X,Y)
00097 #define LOG(X) log(X)
00098 #define LOG_TEN(X) log10(X)
00099 #define SQRT(X) sqrt(X)
00100 #endif
00101
00102
00103 #endif
This file is part of the documentation for kspread Library Version 1.4.2.