Changeset 1144
- Timestamp:
- 05/09/08 03:21:47 (16 years ago)
- Files:
-
- trunk/libffado/src/libieee1394/IsoHandlerManager.h (modified) (1 diff)
- trunk/libffado/src/libutil/Atomic.h (modified) (10 diffs)
- trunk/libffado/src/libutil/Thread.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libieee1394/IsoHandlerManager.h
r1005 r1144 91 91 92 92 // the event request structure 93 SInt32request_update;93 int32_t request_update; 94 94 95 95 // static allocation due to RT constraints trunk/libffado/src/libutil/Atomic.h
r864 r1144 51 51 #define __FFADOATOMIC__ 52 52 53 typedef unsigned short UInt16; 54 typedef unsigned long UInt32; 55 typedef long SInt32; 56 typedef unsigned long long UInt64; 53 #include <stdint.h> 57 54 58 55 #if defined(__APPLE__) … … 60 57 #if defined(__ppc__) 61 58 62 static inline int CAS(register UInt32 value, register UInt32newvalue, register volatile void* addr)59 static inline int CAS(register uint32_t value, register uint32_t newvalue, register volatile void* addr) 63 60 { 64 61 register int result; … … 94 91 #endif 95 92 96 static inline char CAS(volatile UInt32 value, UInt32newvalue, volatile void* addr)93 static inline char CAS(volatile uint32_t value, uint32_t newvalue, volatile void* addr) 97 94 { 98 95 register char ret; … … 115 112 #ifdef __PPC__ 116 113 117 static inline int CAS(register UInt32 value, register UInt32newvalue, register volatile void* addr)114 static inline int CAS(register uint32_t value, register uint32_t newvalue, register volatile void* addr) 118 115 { 119 116 register int result; 120 register UInt32tmp;117 register uint32_t tmp; 121 118 asm volatile ( 122 119 "# CAS \n" … … 149 146 #endif 150 147 151 static inline char CAS(volatile UInt32 value, UInt32newvalue, volatile void* addr)148 static inline char CAS(volatile uint32_t value, uint32_t newvalue, volatile void* addr) 152 149 { 153 150 register char ret; … … 166 163 #endif 167 164 168 static inline long INC_ATOMIC(volatile SInt32* val)169 { 170 SInt32actual;165 static inline long INC_ATOMIC(volatile int32_t* val) 166 { 167 int32_t actual; 171 168 do { 172 169 actual = *val; … … 175 172 } 176 173 177 static inline long DEC_ATOMIC(volatile SInt32* val)178 { 179 SInt32actual;174 static inline long DEC_ATOMIC(volatile int32_t* val) 175 { 176 int32_t actual; 180 177 do { 181 178 actual = *val; … … 184 181 } 185 182 186 static inline long ADD_ATOMIC(volatile SInt32* val, SInt32addval)187 { 188 SInt32actual;183 static inline long ADD_ATOMIC(volatile int32_t* val, int32_t addval) 184 { 185 int32_t actual; 189 186 do { 190 187 actual = *val; … … 193 190 } 194 191 195 static inline long SUBSTRACT_ATOMIC(volatile SInt32* val, SInt32addval)196 { 197 SInt32actual;192 static inline long SUBSTRACT_ATOMIC(volatile int32_t* val, int32_t addval) 193 { 194 int32_t actual; 198 195 do { 199 196 actual = *val; … … 202 199 } 203 200 204 static inline long ZERO_ATOMIC(volatile SInt32* val)205 { 206 SInt32actual;201 static inline long ZERO_ATOMIC(volatile int32_t* val) 202 { 203 int32_t actual; 207 204 do { 208 205 actual = *val; trunk/libffado/src/libutil/Thread.h
r864 r1144 107 107 virtual int DropRealTime() = 0; 108 108 109 virtual void SetParams( UInt64 period, UInt64 computation, UInt64constraint) // Empty implementation, will only make sense on OSX...109 virtual void SetParams(uint64_t period, uint64_t computation, uint64_t constraint) // Empty implementation, will only make sense on OSX... 110 110 {} 111 111