Example defines.h file for an Alpha


#ifndef _DEFINES_H
#define _DEFINES_H 1

/*
  Define basic structure of host machine.
  */

typedef int           int32;  /* signed  32-bit integer */
typedef unsigned int  uint32; /* signed  32-bit integer */
typedef short         int16;  /* signed  16-bit integer */
typedef signed char   int8;   /* signed   8-bit integer */
typedef unsigned char uint8;  /* unsigned 8-bit integer */
typedef float         sfloat; /* 32-bit IEEE real */

/* Litle endian */
#define LLVS_NATIVE_BYTE_SEX 0
/* Not Vax but IEEE 754 */
#define LLVS_NATIVE_FLOATFMT 1

#endif /* ifndef _DEFINES_H */

Example defines.h file for an Ultrasparc


#ifndef _DEFINES_H
#define _DEFINES_H 1
/*
  Define basic structure of host machine.
  */

typedef int           int32;  /* signed  32-bit integer */
typedef unsigned int  uint32; /* signed  32-bit integer */
typedef short         int16;  /* signed  16-bit integer */
typedef signed char   int8;   /* signed   8-bit integer */
typedef unsigned char uint8;  /* unsigned 8-bit integer */
typedef float         sfloat; /* 32-bit IEEE real */

/* Big endian */
#define LLVS_NATIVE_BYTE_SEX 1
/* Not Vax - IEEE 754 */
#define LLVS_NATIVE_FLOATFMT 1

#endif /* ifndef _DEFINES_H */

Return to ALI home page.
(Last changed: March 24, 1998.)