openalbridge/endianness.c
changeset 2415 35d09cbf819a
parent 2260 31756e21c436
equal deleted inserted replaced
2414:fd9ca82077d8 2415:35d09cbf819a
    19 #include "endianness.h"
    19 #include "endianness.h"
    20 
    20 
    21 #ifdef __CPLUSPLUS
    21 #ifdef __CPLUSPLUS
    22 extern "C" {
    22 extern "C" {
    23 #endif 
    23 #endif 
    24     
    24 
    25     /*from big endian to little endian*/
    25 
    26     int invert_endianness(uint32_t number){
    26         
    27         return bswap_32(number);
       
    28     }
       
    29     
       
    30 #ifdef __CPLUSPLUS
    27 #ifdef __CPLUSPLUS
    31 }
    28 }
    32 #endif
    29 #endif