1/* 2** Copyright 2003, Axel D�fler, axeld@pinc-software.de. All rights reserved. 3** Distributed under the terms of the MIT License. 4*/ 5 6#include <asm_defs.h> 7 8.text 9 10 11/* float __swap_float(float value) 12 */ 13FUNCTION(__swap_float): 14/* moveq.l #0,%d0*/ 15 move.b (7,%a7),%d0 16 lsl.l #8,%d0 17 move.b (6,%a7),%d0 18 lsl.l #8,%d0 19 move.b (5,%a7),%d0 20 lsl.l #8,%d0 21 move.b (4,%a7),%d0 22 rts 23FUNCTION_END(__swap_float) 24 25 26/* double __swap_double(double value) 27 */ 28FUNCTION(__swap_double): 29/* moveq.l #0,%d0*/ 30 move.b (7,%a7),%d1 31 lsl.l #8,%d1 32 move.b (6,%a7),%d1 33 lsl.l #8,%d1 34 move.b (5,%a7),%d1 35 lsl.l #8,%d1 36 move.b (4,%a7),%d1 37 /**/ 38 move.b (11,%a7),%d0 39 lsl.l #8,%d0 40 move.b (10,%a7),%d0 41 lsl.l #8,%d0 42 move.b (9,%a7),%d0 43 lsl.l #8,%d0 44 move.b (8,%a7),%d0 45 rts 46#warning M68K: XXX:check sizeof(double) 47FUNCTION_END(__swap_double) 48 49