Blame sysdeps/i386/i686/fpu/e_log.S
|
Packit Service |
82fcde |
/*
|
|
Packit Service |
82fcde |
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
Packit Service |
82fcde |
* Public domain.
|
|
Packit Service |
82fcde |
*
|
|
Packit Service |
82fcde |
* Adapted for i686 instructions.
|
|
Packit Service |
82fcde |
*/
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <machine/asm.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
.text
|
|
Packit Service |
82fcde |
ENTRY(__ieee754_log)
|
|
Packit Service |
82fcde |
fldln2 // log(2)
|
|
Packit Service |
82fcde |
fldl 4(%esp) // x : log(2)
|
|
Packit Service |
82fcde |
fucomi %st
|
|
Packit Service |
82fcde |
jp 3f
|
|
Packit Service |
82fcde |
fyl2x // log(x)
|
|
Packit Service |
82fcde |
ret
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
3: fstp %st(1)
|
|
Packit Service |
82fcde |
ret
|
|
Packit Service |
82fcde |
END (__ieee754_log)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ENTRY(__log_finite)
|
|
Packit Service |
82fcde |
fldln2 // log(2)
|
|
Packit Service |
82fcde |
fldl 4(%esp) // x : log(2)
|
|
Packit Service |
82fcde |
fyl2x // log(x)
|
|
Packit Service |
82fcde |
ret
|
|
Packit Service |
82fcde |
END(__log_finite)
|