mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 12:22:35 +03:00
71b99beec5
git-svn-id: svn://kolibrios.org@7855 a494cfbc-eb01-0410-851d-a64ba20cac60
19 lines
283 B
NASM
19 lines
283 B
NASM
|
|
format ELF
|
|
include '../proc32.inc'
|
|
section '.text' executable
|
|
|
|
public log10_ as "log10"
|
|
|
|
log10_:
|
|
|
|
; ln(x) = lg(x)/lg(e).
|
|
|
|
fld qword[esp+4]
|
|
fld1
|
|
fxch
|
|
fyl2x ;Compute 1*lg(x).
|
|
fldl2t ;Load lg(10).
|
|
fdivp st1, st0 ;Compute lg(x)/lg(10).
|
|
ret
|