2 * Copyright 2009, Johannes Wischert. All rights reserved.
3 * Distributed under the terms of the MIT License.
10 /* uint16 __swap_int16(uint16 value)
12 FUNCTION(__swap_int16):
24 FUNCTION_END(__swap_int16)
26 /* uint32 __swap_int32(uint32 value)
28 FUNCTION(__swap_int32):
43 FUNCTION_END(__swap_int32)
45 /* uint64 __swap_int64(uint64 value)
47 FUNCTION(__swap_int64):
58 FUNCTION_END(__swap_int64)
60 /* TODO: The following functions can surely be optimized. A simple optimization
61 * would be to define macros with the contents of the __swap_int{32,64}
62 * functions and use those instead of calling the functions.
65 /* float __swap_float(float value)
67 FUNCTION(__swap_float):
70 FUNCTION_END(__swap_float)
73 /* double __swap_double(double value)
75 FUNCTION(__swap_double):
78 #warning M68K: XXX:check sizeof(double)
79 FUNCTION_END(__swap_double)