revert between 56095 -> 55830 in arch
[AROS.git] / arch / m68k-all / stdc / math / s_round-881.s
blob2f2f749f2399f115fc19312a5af3b62ee4e8421b
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(round881, STDC, 172)
8 _FUNCTION(AROS_SLIB_ENTRY(round881, STDC, 172))
10 AROS_SLIB_ENTRY(round881, STDC, 172):
11 fmove.s %d0,%fp0
12 and.l #0x80000000,%d0
13 or.l #0x3f000000,%d0
14 fadd.s %d0,%fp0
15 fintrz.x %fp0
16 fmove.s %fp0,%d0
17 rts