cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
cpu.cpp File Reference
#include "cddefines.h"
#include "path.h"
#include "trace.h"
Include dependency graph for cpu.cpp:

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)

Detailed Description

implement hardware dependent definitions

Definition in file cpu.cpp.


Function Documentation

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().

Here is the call graph for this function:

FILE* open_data ( const char *  fname,
const char *  mode,
access_scheme  scheme 
)
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.


Generated for cloudy by doxygen 1.8.1.1