~ubuntu-branches/ubuntu/jaunty/pulseaudio/jaunty-updates

« back to all changes in this revision

Viewing changes to src/pulsecore/endianmacros.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071204005608-3lzrrrpxi186kgx4
Tags: upstream-0.9.8
ImportĀ upstreamĀ versionĀ 0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef fooendianmacroshfoo
2
2
#define fooendianmacroshfoo
3
3
 
4
 
/* $Id: endianmacros.h 1971 2007-10-28 19:13:50Z lennart $ */
 
4
/* $Id: endianmacros.h 2034 2007-11-09 01:30:25Z lennart $ */
5
5
 
6
6
/***
7
7
  This file is part of PulseAudio.
63
63
 #define PA_UINT16_FROM_LE(x) PA_UINT16_SWAP(x)
64
64
 #define PA_UINT16_FROM_BE(x) ((uint16_t)(x))
65
65
 
 
66
 #define PA_UINT16_TO_LE(x) PA_UINT16_SWAP(x)
 
67
 #define PA_UINT16_TO_BE(x) ((uint16_t)(x))
 
68
 
66
69
 #define PA_INT32_FROM_LE(x) PA_INT32_SWAP(x)
67
70
 #define PA_INT32_FROM_BE(x) ((int32_t)(x))
68
71
 
 
72
 #define PA_INT32_TO_LE(x) PA_INT32_SWAP(x)
 
73
 #define PA_INT32_TO_BE(x) ((int32_t)(x))
 
74
 
69
75
 #define PA_UINT32_FROM_LE(x) PA_UINT32_SWAP(x)
70
76
 #define PA_UINT32_FROM_BE(x) ((uint32_t)(x))
71
77
 
81
87
 #define PA_UINT16_FROM_LE(x) ((uint16_t)(x))
82
88
 #define PA_UINT16_FROM_BE(x) PA_UINT16_SWAP(x)
83
89
 
 
90
 #define PA_UINT16_TO_LE(x) ((uint16_t)(x))
 
91
 #define PA_UINT16_TO_BE(x) PA_UINT16_SWAP(x)
 
92
 
84
93
 #define PA_INT32_FROM_LE(x) ((int32_t)(x))
85
94
 #define PA_INT32_FROM_BE(x) PA_INT32_SWAP(x)
86
95
 
 
96
 #define PA_INT32_TO_LE(x) ((int32_t)(x))
 
97
 #define PA_INT32_TO_BE(x) PA_INT32_SWAP(x)
 
98
 
87
99
 #define PA_UINT32_FROM_LE(x) ((uint32_t)(x))
88
100
 #define PA_UINT32_FROM_BE(x) PA_UINT32_SWAP(x)
89
101