1 // Global variables for cl_DF.
4 #include "base/cl_sysdep.h"
7 #include "float/dfloat/cl_DF.h"
14 const cl_DF cl_DF_0 = cl_DF_0;
15 const cl_DF cl_DF_1 = cl_DF_1;
16 const cl_DF cl_DF_minus1 = cl_DF_minus1;
18 int cl_DF_globals_init_helper::count = 0;
20 cl_DF_globals_init_helper::cl_DF_globals_init_helper()
23 #if (cl_word_size == 64)
24 new ((void *)&cl_DF_0) cl_DF(allocate_dfloat(0)); // 0.0d0
25 new ((void *)&cl_DF_1) cl_DF(encode_DF(0, 1, bit(DF_mant_len))); // 1.0d0
26 new ((void *)&cl_DF_minus1) cl_DF(encode_DF(-1,1,bit(DF_mant_len))); // -1.0d0
28 new ((void *)&cl_DF_0) cl_DF(allocate_dfloat(0, 0)); // 0.0d0
29 new ((void *)&cl_DF_1) cl_DF(encode_DF(0, 1, bit(DF_mant_len - 32), 0)); // 1.0d0
30 new ((void *)&cl_DF_minus1) cl_DF(encode_DF(-1, 1, bit(DF_mant_len - 32), 0)); // -1.0d0
34 cl_DF_globals_init_helper::~cl_DF_globals_init_helper()
37 // Nothing to clean up