CSIRO Mathematics, Informatics and Statistics
|
|
|
Next: LIAR coding Style Up: No Title Previous: Compiling Issues
Data types and portabilityNot only do LIAR functions need to interface to different IAS, they must also be portable across different platforms. C's int type is a very rubbery type, on some systems it is two bytes long and on others it is 4 bytes long. This makes it a nuisance for portability. Hence to capture the importance of integer types the LIAR has a standard header called liarlmts.h which deal exculsively with the range of data types. It differs from the standard C header files limits.h and float.h in that it includes definitions where the size of the data is explicity defined in the definition itself. The LIAR type definitions for a typical 32bit workstation are given in Table 2 along with their max and min values. For example: the SEED_TYPE maximum is SEED_TYPE_MAX and its minimum is SEED_TYPE_MIN.
Next: LIAR coding Style Up: No Title Previous: Compiling Issues Ed Breen Tue Sep 3 17:19:31 EST 1996 |