@ -1,9 +1,8 @@
// cl_SF_pi, cl_FF_pi, cl_DF_pi, cl_LF_pi.
// cl_SF_pi() , cl_FF_pi() , cl_DF_pi() , cl_LF_pi() .
// General includes.
# include "cl_sysdep.h"
CL_PROVIDE ( cl_F_pi_var )
// Specification.
# include "cl_F_tran.h"
@ -18,20 +17,36 @@ CL_PROVIDE(cl_F_pi_var)
namespace cln {
// Mantisse von pi :
static const uintD pi_mantisse [ 2048 / intDsize ] =
# include "cl_F_pi_var.h"
cl_LF cl_LF_pi = encode_LF_array ( 0 , 2 , pi_mantisse , 2048 / intDsize ) ;
cl_LF & cl_LF_pi ( )
{
// Mantisse von pi :
static const uintD pi_mantisse [ 2048 / intDsize ] =
# include "cl_F_pi_var.h"
static cl_LF val = encode_LF_array ( 0 , 2 , pi_mantisse , 2048 / intDsize ) ;
return val ;
}
// Problem: If someone changes free_hook, the destructor of this
// will call the new hook, passing it some pointer obtained by the old
// malloc_hook. ??
const cl_SF cl_SF_pi = cl_LF_to_SF ( cl_LF_pi ) ;
const cl_FF cl_FF_pi = cl_LF_to_FF ( cl_LF_pi ) ;
const cl_DF cl_DF_pi = cl_LF_to_DF ( cl_LF_pi ) ;
const cl_SF & cl_SF_pi ( )
{
static const cl_SF val = cl_LF_to_SF ( cl_LF_pi ( ) ) ;
return val ;
}
const cl_DF & cl_DF_pi ( )
{
static const cl_DF val = cl_LF_to_DF ( cl_LF_pi ( ) ) ;
return val ;
}
const cl_FF & cl_FF_pi ( )
{
static const cl_FF val = cl_LF_to_FF ( cl_LF_pi ( ) ) ;
return val ;
}
} // namespace cln
CL_PROVIDE_END ( cl_F_pi_var )