cloudy
trunk
|
Go to the source code of this file.
Functions | |
FILE * | open_data (const char *fname, const char *mode, access_scheme scheme) |
void | set_NaN (sys_float &x) |
void | set_NaN (sys_float x[], long n) |
void | set_NaN (double &x) |
void | set_NaN (double x[], long n) |
bool | MyIsnan (sys_float &x) |
bool | MyIsnan (double &x) |
implement hardware dependent definitions
Definition in file cpu.cpp.
bool MyIsnan | ( | sys_float & | x | ) |
detect quiet and signaling NaNs in single precision FP
Definition at line 622 of file cpu.cpp.
Referenced by ParseCrashDo().
bool MyIsnan | ( | double & | x | ) |
detect quiet and signaling NaNs in double precision FP
Definition at line 637 of file cpu.cpp.
References t_cpu::big_endian(), cpu, and t_cpu::little_endian().
FILE* open_data | ( | const char * | fname, |
const char * | mode, | ||
access_scheme | scheme | ||
) |
Definition at line 438 of file cpu.cpp.
References AS_DATA_LOCAL, AS_DATA_LOCAL_TRY, AS_DATA_ONLY, AS_DATA_ONLY_TRY, AS_DATA_OPTIONAL, AS_LOCAL_DATA, AS_LOCAL_DATA_TRY, AS_LOCAL_ONLY, AS_LOCAL_ONLY_TRY, cdEXIT, t_cpu::chSearchPath, cpu, DEBUG_ENTRY, ioQQQ, lgAbort, t_trace::lgTrace, t_cpu::nFileDone, t_cpu::printDataPath(), TotalInsanity(), and trace.
Referenced by atmdat_Chianti_readin(), atmdat_lamda_readin(), atmdat_readin(), Badnell_rec_init(), cdGetLineList(), ContBandsCreate(), FeIIBandsCreate(), FeIICreate(), FillGFF(), GetStandardHeLines(), H2_CollidRateRead(), H2_He_coll_init(), H2_Read_hminus_distribution(), H2_ReadDissprob(), H2_ReadEnergies(), H2_ReadTransprob(), HeCollidSetup(), HelikeTransProbSetup(), HyperfineCreate(), t_yield::init_yield(), InitGrid(), iso_recomb_setup(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), lgFileReadable(), lgOptimize_do(), lgValidAsciiFile(), lgValidBinFile(), mie_read_mix(), mie_read_opc(), mie_read_rfi(), mie_read_szd(), mie_write_opc(), Nemala_Start(), optimize_phymir(), ParseInit(), ParseOptimize(), ParsePunch(), ParseState(), pnegopc(), ptrcer(), punch_opacity(), RauchInitializeSub(), rd_continue(), read_continuum_mesh(), read_hm05(), ReadAugerData(), ReadTable(), StarburstInitialize(), state_get_put(), t_ADfA::t_ADfA(), t_fe2ovr_la::t_fe2ovr_la(), and wr_continue().
void set_NaN | ( | sys_float & | x | ) |
define routines for setting single and double precision signaling NaN The bit pattern for an SNaN is implementation defined, but this should work on most modern CPU's. The system definition is preferred, so in C++ this should be replaced by numeric_limits<TYPE>::signaling_NaN()
Definition at line 551 of file cpu.cpp.
References cpu, and t_cpu::Float_SNaN_Value.
Referenced by ConvInitSolution(), Fe7Lev8(), Fe_10_11_13_cs(), invalidate_array(), MyMalloc(), ParseCrashDo(), and zero().
void set_NaN | ( | sys_float | x[], |
long | n | ||
) |
Definition at line 559 of file cpu.cpp.
References cpu, and t_cpu::Float_SNaN_Value.
void set_NaN | ( | double & | x | ) |
Definition at line 577 of file cpu.cpp.
References cpu, and t_cpu::Double_SNaN_Value.
void set_NaN | ( | double | x[], |
long | n | ||
) |
Definition at line 594 of file cpu.cpp.
References cpu, and t_cpu::Double_SNaN_Value.