Changeset c55dd58 in mainline for kernel/arch/ia32/include/byteorder.h


Ignore:
Timestamp:
2006-11-30T15:37:16Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c19cf28
Parents:
058b021
Message:

cleanup endian conversion macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/byteorder.h

    r058b021 rc55dd58  
    3636#define KERN_ia32_BYTEORDER_H_
    3737
     38#include <byteorder.h>
     39
    3840/* IA-32 is little-endian */
    39 #define unative_t_le2host(n)            (n)
     41#define uint32_t_le2host(n)             (n)
    4042#define uint64_t_le2host(n)             (n)
     43
     44#define uint32_t_be2host(n)             uint64_t_byteorder_swap(n)
     45#define uint64_t_be2host(n)             uint32_t_byteorder_swap(n)
    4146
    4247#endif
Note: See TracChangeset for help on using the changeset viewer.