2 #ifdef BUILDING_FS_SHELL
5 # include <BeOSBuildCompatibility.h>
11 __swap_int16(uint16 value
)
13 return (value
>> 8) | (value
<< 8);
17 __swap_int32(uint32 value
)
19 return (value
>> 24) | ((value
& 0xff0000) >> 8) | ((value
& 0xff00) << 8)
24 __swap_int64(uint64 value
)
26 return uint64(__swap_int32(uint32(value
>> 32)))
27 | (uint64(__swap_int32(uint32(value
))) << 32);