Changeset 2958 for trunk/kLdr/kLdrHlp.h


Ignore:
Timestamp:
Feb 9, 2007, 6:12:22 AM (19 years ago)
Author:
bird
Message:

Relocations (generic only - x86 is generic).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrHlp.h

    r2955 r2958  
    8686/** @def KLDRHLP_BE2H_U64
    8787 * Unsigned 64-bit big-endian to host endian. */
    88 #if 1
     88#ifdef KLDR_LITTLE_ENDIAN
    8989# define KLDRHLP_LE2H_U16(u16)  ((uint16_t)(u16))
    9090# define KLDRHLP_LE2H_U32(u32)  ((uint32_t)(u32))
     
    9393# define KLDRHLP_BE2H_U32(u32)  KLDRHLP_E2E_U32(u32)
    9494# define KLDRHLP_BE2H_U64(u64)  KLDRHLP_E2E_U64(u64)
    95 #else
     95#elif defined(KLDR_BIG_ENDIAN)
    9696# define KLDRHLP_LE2H_U16(u16)  KLDRHLP_E2E_U16(u16)
    9797# define KLDRHLP_LE2H_U32(u32)  KLDRHLP_E2E_U32(u32)
     
    100100# define KLDRHLP_BE2H_U32(u32)  ((uint32_t)(u32))
    101101# define KLDRHLP_BE2H_U64(u64)  ((uint32_t)(u32))
     102#else
     103# error "KLDR_BIG_ENDIAN or KLDR_LITTLE_ENDIAN is supposed to be defined."
    102104#endif
    103105
Note: See TracChangeset for help on using the changeset viewer.