Goto sanos source index

;-----------------------------------------------------------------------------
; fabs.asm - floating point absolute value
; Ported from Al Maromaty's free C Runtime Library
;-----------------------------------------------------------------------------

                SECTION .text

                global  fabs
                global  _fabs
                
fabs:
_fabs:
                push    ebp
                mov     ebp,esp
                fld     qword [ebp+8]           ; Load real from stack
                fabs                            ; Take the absolute value
                pop     ebp
                ret