Home | History | Annotate | Download | only in jni
      1 #include <inttypes.h>
      2 #include <sys/endian.h>
      3 
      4 int16_t I16;
      5 int32_t I32;
      6 int64_t I64;
      7 
      8 int16_t f16(int16_t i)
      9 {
     10     return __swap16(i);
     11 }
     12 
     13 int32_t f32(int32_t i)
     14 {
     15     return __swap32(i);
     16 }
     17 
     18 /* No need to check __swap64 because in all supported
     19    32-bit architectures it's implemented with two __swap32
     20 int64_t f64(int64_t i)
     21 {
     22     return __swap64(i);
     23 }
     24 */
     25 
     26 int main()
     27 {
     28 }
     29