198 INTEGER( Short ) :: source = 1_short
212 INTRINSIC transfer, ichar
235 IF ( iachar( transfer( source,
'a' ) ) == 0 )
big_endian = .true.
324 INTEGER( Short ),
INTENT( IN ) :: input
325 INTEGER( Short ) :: output
339 INTEGER( Byte ),
DIMENSION( N ) :: byte_equivalent
348 byte_equivalent = transfer( input, byte_equivalent )
349 byte_equivalent = byte_equivalent( n:1:-1 )
350 output = transfer( byte_equivalent, output )
362 INTEGER( Long ),
INTENT( IN ) :: input
363 INTEGER( Long ) :: output
377 INTEGER( Byte ),
DIMENSION( N ) :: byte_equivalent
386 byte_equivalent = transfer( input, byte_equivalent )
387 byte_equivalent = byte_equivalent( n:1:-1 )
388 output = transfer( byte_equivalent, output )
400 INTEGER( LLong ),
INTENT( IN ) :: input
401 INTEGER( LLong ) :: output
415 INTEGER( Byte ),
DIMENSION( N ) :: byte_equivalent
424 byte_equivalent = transfer( input, byte_equivalent )
425 byte_equivalent = byte_equivalent( n:1:-1 )
426 output = transfer( byte_equivalent, output )
438 REAL( Single ),
INTENT( IN ) :: input
439 REAL( Single ) :: output
453 INTEGER( Byte ),
DIMENSION( N ) :: byte_equivalent
462 byte_equivalent = transfer( input, byte_equivalent )
463 byte_equivalent = byte_equivalent( n:1:-1 )
464 output = transfer( byte_equivalent, output )
476 REAL( Double ),
INTENT( IN ) :: input
477 REAL( Double ) :: output
491 INTEGER( Byte ),
DIMENSION( N ) :: byte_equivalent
500 byte_equivalent = transfer( input, byte_equivalent )
501 byte_equivalent = byte_equivalent( n:1:-1 )
502 output = transfer( byte_equivalent, output )
514 COMPLEX( Single ),
INTENT( IN ) :: input
515 COMPLEX( Single ) :: output
522 output = cmplx(
swap_endian(
REAL( Input, Single ) ), &
536 COMPLEX( Double ),
INTENT( IN ) :: input
537 COMPLEX( Double ) :: output
544 output = cmplx(
swap_endian(
REAL( Input, Double ) ), &
integer, parameter, public n_bytes_single
logical function, public big_endian()
integer, parameter, public n_bytes_long
integer, parameter, public double
integer, parameter, public single
elemental real(double) function swap_double_float(Input)
integer, parameter, public n_bytes_double
integer, parameter, public n_bytes_llong
elemental integer(short) function swap_short_integer(Input)
elemental integer(long) function swap_long_integer(Input)
elemental integer(llong) function swap_llong_integer(Input)
integer, parameter, public n_bytes_short
elemental complex(double) function swap_double_complex(Input)
elemental complex(single) function swap_single_complex(Input)
elemental real(single) function swap_single_float(Input)