~ubuntu-branches/ubuntu/gutsy/virtualbox-ose/gutsy

« back to all changes in this revision

Viewing changes to src/VBox/Devices/PC/Etherboot-src/include/little_bswap.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-09-08 16:44:58 UTC
  • Revision ID: james.westby@ubuntu.com-20070908164458-wao29470vqtr8ksy
Tags: upstream-1.5.0-dfsg2
ImportĀ upstreamĀ versionĀ 1.5.0-dfsg2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ETHERBOOT_LITTLE_BSWAP_H
 
2
#define ETHERBOOT_LITTLE_BSWAP_H
 
3
 
 
4
#define ntohl(x)        __bswap_32(x)
 
5
#define htonl(x)        __bswap_32(x)
 
6
#define ntohs(x)        __bswap_16(x)
 
7
#define htons(x)        __bswap_16(x)
 
8
#define cpu_to_le32(x)  (x)
 
9
#define cpu_to_le16(x)  (x)
 
10
#define cpu_to_be32(x)  __bswap_32(x)
 
11
#define cpu_to_be16(x)  __bswap_16(x)
 
12
#define le32_to_cpu(x)  (x)
 
13
#define le16_to_cpu(x)  (x)
 
14
#define be32_to_cpu(x)  __bswap_32(x)
 
15
#define be16_to_cpu(x)  __bswap_16(x)
 
16
 
 
17
#endif /* ETHERBOOT_LITTLE_BSWAP_H */