Ignore:
Timestamp:
Aug 31, 2007, 4:16:27 AM (18 years ago)
Author:
bird
Message:

Dropped kLdrBase.h

Location:
trunk/kStuff/include/k
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/include/k/kDefs.h

    r3554 r3569  
    252252/** @def K_E2E_U16
    253253 * Convert the endian of an unsigned 16-bit value. */
    254 # define K_E2E_U16(u16)         ( (uint16_t) (((u16) >> 8) | ((u16) << 8)) )
     254# define K_E2E_U16(u16)         ( (KU16) (((u16) >> 8) | ((u16) << 8)) )
    255255/** @def K_E2E_U32
    256256 * Convert the endian of an unsigned 32-bit value. */
    257 # define K_E2E_U32(u32)         (   ( ((u32) & UINT32_C(0xff000000)) >> 24 ) \
    258                                   | ( ((u32) & UINT32_C(0x00ff0000)) >>  8 ) \
    259                                   | ( ((u32) & UINT32_C(0x0000ff00)) <<  8 ) \
    260                                   | ( ((u32) & UINT32_C(0x000000ff)) << 24 ) \
     257# define K_E2E_U32(u32)         (   ( ((u32) & KU32_C(0xff000000)) >> 24 ) \
     258                                  | ( ((u32) & KU32_C(0x00ff0000)) >>  8 ) \
     259                                  | ( ((u32) & KU32_C(0x0000ff00)) <<  8 ) \
     260                                  | ( ((u32) & KU32_C(0x000000ff)) << 24 ) \
    261261                                )
    262262/** @def K_E2E_U64
    263263 * Convert the endian of an unsigned 64-bit value. */
    264 # define K_E2E_U64(u64)         (   ( ((u64) & UINT64_C(0xff00000000000000)) >> 56 ) \
    265                                   | ( ((u64) & UINT64_C(0x00ff000000000000)) >> 40 ) \
    266                                   | ( ((u64) & UINT64_C(0x0000ff0000000000)) >> 24 ) \
    267                                   | ( ((u64) & UINT64_C(0x000000ff00000000)) >>  8 ) \
    268                                   | ( ((u64) & UINT64_C(0x00000000ff000000)) <<  8 ) \
    269                                   | ( ((u64) & UINT64_C(0x0000000000ff0000)) << 24 ) \
    270                                   | ( ((u64) & UINT64_C(0x000000000000ff00)) << 40 ) \
    271                                   | ( ((u64) & UINT64_C(0x00000000000000ff)) << 56 ) \
     264# define K_E2E_U64(u64)         (   ( ((u64) & KU64_C(0xff00000000000000)) >> 56 ) \
     265                                  | ( ((u64) & KU64_C(0x00ff000000000000)) >> 40 ) \
     266                                  | ( ((u64) & KU64_C(0x0000ff0000000000)) >> 24 ) \
     267                                  | ( ((u64) & KU64_C(0x000000ff00000000)) >>  8 ) \
     268                                  | ( ((u64) & KU64_C(0x00000000ff000000)) <<  8 ) \
     269                                  | ( ((u64) & KU64_C(0x0000000000ff0000)) << 24 ) \
     270                                  | ( ((u64) & KU64_C(0x000000000000ff00)) << 40 ) \
     271                                  | ( ((u64) & KU64_C(0x00000000000000ff)) << 56 ) \
    272272                                )
    273273
  • trunk/kStuff/include/k/kLdrFmts/lx.h

    r3568 r3569  
    1313#ifndef IMAGE_OS2_SIGNATURE_LX
    1414/** LX signature ("LX") */
    15 # define IMAGE_LX_SIGNATURE  KLDR_LE2H_U16('L' | ('X' << 8))
     15# define IMAGE_LX_SIGNATURE  K_LE2H_U16('L' | ('X' << 8))
    1616#endif
    1717
  • trunk/kStuff/include/k/kLdrFmts/mach-o.h

    r3568 r3569  
    865865typedef struct scattered_relocation_info
    866866{
    867 #ifdef KLDR_LITTLE_ENDIAN
     867#if K_ENDIAN == K_ENDIAN_LITTLE
    868868    KU32        r_address : 24,     /**< Section relative address of the fixup. (macho_relocation_info_t::r_address) */
    869869                r_type : 4,         /**< Relocation type; 0 is standard, non-zero are machine specific. (macho_relocation_info_t::r_type) */
     
    871871                r_pcrel : 1,        /**< PC (program counter) relative fixup; subtract the fixup address. (macho_relocation_info_t::r_pcrel) */
    872872                r_scattered : 1;    /**< Set if scattered relocation, clear if normal relocation. */
    873 #elif defined(KLDR_BIG_ENDIAN)
     873#elif K_ENDIAN == K_ENDIAN_BIG
    874874    KU32        r_scattered : 1,    /**< Set if scattered relocation, clear if normal relocation. */
    875875                r_pcrel : 1,        /**< PC (program counter) relative fixup; subtract the fixup address. (macho_relocation_info_t::r_pcrel) */
     
    878878                r_address : 24;     /**< Section relative address of the fixup. (macho_relocation_info_t::r_address) */
    879879#else
    880 # error "Neither KLDR_LITTLE_ENDIAN nor KLDR_BIG_ENDIAN is defined!"
     880# error "Neither K_ENDIAN isn't LITTLE or BIG!"
    881881#endif
    882882    KI32        r_value;            /**< The value the fixup is refering to (without offset added). */
  • trunk/kStuff/include/k/kLdrFmts/mz.h

    r3568 r3569  
    3737
    3838#ifndef IMAGE_DOS_SIGNATURE
    39 # define IMAGE_DOS_SIGNATURE KLDR_LE2H_U16('M' | ('Z' << 8))
     39# define IMAGE_DOS_SIGNATURE K_LE2H_U16('M' | ('Z' << 8))
    4040#endif
    4141
  • trunk/kStuff/include/k/kLdrFmts/pe.h

    r3568 r3569  
    1919*******************************************************************************/
    2020#ifndef IMAGE_NT_SIGNATURE
    21 # define  IMAGE_NT_SIGNATURE KLDR_LE2H_U32('P' | ('E' << 8))
     21# define  IMAGE_NT_SIGNATURE K_LE2H_U32('P' | ('E' << 8))
    2222#endif
    2323
Note: See TracChangeset for help on using the changeset viewer.