ack/mach/powerpc/libem/cfi8.s
2007-11-02 18:56:58 +00:00

21 lines
279 B
ArmAsm

#
! $Source$
! $State$
! $Revision$
#include "powerpc.h"
.sect .text
! Converts a 64-bit double into a 32-bit integer.
!
! Stack: ( double -- int )
.define .cfi8
.cfi8:
lfd f0, 0(sp)
fctiwz f0, f0
stfd f0, 0(sp)
addi sp, sp, 4
bclr ALWAYS, 0, 0 ! ...and return