adjust the vector offsets to match stdc changes
[AROS.git] / arch / m68k-all / stdc / math / s_floor-881.s
blobff75d34ee503dcb523f1c26b6b8de0ac558ff9de
1 # Copyright © 2018, The AROS Development Team. All rights reserved.
2 # $Id$
3 #include "aros/m68k/asm.h"
5 .text
6 .balign 4
7 .globl AROS_SLIB_ENTRY(floor881, STDC, 167)
8 _FUNCTION(AROS_SLIB_ENTRY(floor881, STDC, 167))
10 AROS_SLIB_ENTRY(floor881, STDC, 167):
11 fmove.s %d0,%fp0
12 fmove.x %fp0,%fp1
13 fintrz.x %fp0
14 fcmp.x %fp1,%fp0
15 fbole .floor881done
16 fsub.s #0x3f800000,%fp0
17 .floor881done:
18 fmove.s %fp0,%d0
19 rts