ack/mach/powerpc/libem/cfi8.s

21 lines
279 B
ArmAsm
Raw Normal View History

2007-11-02 18:56:58 +00:00
#
! $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