27 use kinds, only: i_byte,i_long
67 subroutine to_native_endianness_i4(i4,num)
81 use kinds, only: i_byte,i_long,i_llong
84 integer(i_llong),
intent(in) :: num
85 integer(i_long),
intent(inout) :: i4(num)
87 integer(i_byte),
dimension(4) :: byte_arr, byte_arr_tmp
88 integer(i_long) :: i,n
91 byte_arr_tmp = transfer(i4(n), byte_arr)
92 byte_arr(1)=byte_arr_tmp(4)
93 byte_arr(2)=byte_arr_tmp(3)
94 byte_arr(3)=byte_arr_tmp(2)
95 byte_arr(4)=byte_arr_tmp(1)
96 i4(n) = transfer(byte_arr, i4(n))
101 end subroutine to_native_endianness_i4
logical function, public is_little_endian()