User's Guide:Macros


Macros Defined or Used in SPRNG

SPRNG users may wish to know the significance of the following macros defined by autoconf. Some of these are found in the config.h file:

SIZEOF_LONG_INT

This macro is the size, in bytes, of long int on the current system.

SIZEOF_DOUBLE

This macro is the size, in bytes, of double on the current system.

SIZEOF_FLOAT

This macro is the size, in bytes, of float on the current system.

SIZEOF_INT_P

This macro is the size, in bytes, of int * on the current system.

F77_FUNC_(name, NAME)

This macro is used to mangle the names of C/C++ identifiers to match the name-mangling scheme used by the Fortran compiler. The two arguments are the name of the identifier in lowercase and in uppercase. Because Fortran is case-insensitive, the identifier must be in entirely one case. See fwrap.h and fwrap.cpp for examples of using this function. This is used only for identifiers that contain at least one underscore.

F77_FUNC(name, NAME)

This macro is identical to F77_FUNC_, only it is used for identifiers that do not contain an underscore.

LONG64

This macro may be defined if the configuration determined a 64-bit integer type. It is not safe to assume that this macro is defined. It is also not safe to assume that if it is not defined, the system can detect 64-bit integers. For an example of how to use this, see the SRC/lcg64.cpp file in the library source.


[Quick 
Start] [User's 
Guide] [Reference 
Manual] [Quick 
Reference]