Changeset 1144

Show
Ignore:
Timestamp:
05/09/08 03:21:47 (16 years ago)
Author:
holin
Message:

cut out local integer typedefs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libieee1394/IsoHandlerManager.h

    r1005 r1144  
    9191 
    9292        // the event request structure 
    93         SInt32 request_update; 
     93        int32_t request_update; 
    9494 
    9595        // static allocation due to RT constraints 
  • trunk/libffado/src/libutil/Atomic.h

    r864 r1144  
    5151#define __FFADOATOMIC__ 
    5252 
    53 typedef unsigned short UInt16; 
    54 typedef unsigned long UInt32; 
    55 typedef long SInt32; 
    56 typedef unsigned long long UInt64; 
     53#include <stdint.h> 
    5754 
    5855#if defined(__APPLE__) 
     
    6057#if defined(__ppc__) 
    6158 
    62 static inline int CAS(register UInt32 value, register UInt32 newvalue, register volatile void* addr) 
     59static inline int CAS(register uint32_t value, register uint32_t newvalue, register volatile void* addr) 
    6360{ 
    6461    register int result; 
     
    9491#endif 
    9592 
    96 static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr) 
     93static inline char CAS(volatile uint32_t value, uint32_t newvalue, volatile void* addr) 
    9794{ 
    9895    register char ret; 
     
    115112#ifdef __PPC__ 
    116113 
    117 static inline int CAS(register UInt32 value, register UInt32 newvalue, register volatile void* addr) 
     114static inline int CAS(register uint32_t value, register uint32_t newvalue, register volatile void* addr) 
    118115{ 
    119116    register int result; 
    120     register UInt32 tmp; 
     117    register uint32_t tmp; 
    121118    asm volatile ( 
    122119        "# CAS                    \n" 
     
    149146#endif 
    150147 
    151 static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr) 
     148static inline char CAS(volatile uint32_t value, uint32_t newvalue, volatile void* addr) 
    152149{ 
    153150    register char ret; 
     
    166163#endif 
    167164 
    168 static inline long INC_ATOMIC(volatile SInt32* val) 
    169 { 
    170     SInt32 actual; 
     165static inline long INC_ATOMIC(volatile int32_t* val) 
     166{ 
     167    int32_t actual; 
    171168    do { 
    172169        actual = *val; 
     
    175172} 
    176173 
    177 static inline long DEC_ATOMIC(volatile SInt32* val) 
    178 { 
    179     SInt32 actual; 
     174static inline long DEC_ATOMIC(volatile int32_t* val) 
     175{ 
     176    int32_t actual; 
    180177    do { 
    181178        actual = *val; 
     
    184181} 
    185182 
    186 static inline long ADD_ATOMIC(volatile SInt32* val, SInt32 addval) 
    187 { 
    188     SInt32 actual; 
     183static inline long ADD_ATOMIC(volatile int32_t* val, int32_t addval) 
     184{ 
     185    int32_t actual; 
    189186    do { 
    190187        actual = *val; 
     
    193190} 
    194191 
    195 static inline long SUBSTRACT_ATOMIC(volatile SInt32* val, SInt32 addval) 
    196 { 
    197     SInt32 actual; 
     192static inline long SUBSTRACT_ATOMIC(volatile int32_t* val, int32_t addval) 
     193{ 
     194    int32_t actual; 
    198195    do { 
    199196        actual = *val; 
     
    202199} 
    203200 
    204 static inline long ZERO_ATOMIC(volatile SInt32* val) 
    205 { 
    206     SInt32 actual; 
     201static inline long ZERO_ATOMIC(volatile int32_t* val) 
     202{ 
     203    int32_t actual; 
    207204    do { 
    208205        actual = *val; 
  • trunk/libffado/src/libutil/Thread.h

    r864 r1144  
    107107        virtual int DropRealTime() = 0; 
    108108 
    109         virtual void SetParams(UInt64 period, UInt64 computation, UInt64 constraint) // 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... 
    110110        {} 
    111111