2007-03-14 20:24:57 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS kernel
|
2021-09-13 01:33:14 +00:00
|
|
|
* PURPOSE:
|
2015-09-19 13:50:57 +00:00
|
|
|
* FILE: lib/sdk/crt/math/i386/log10_asm.s
|
2007-03-14 20:24:57 +00:00
|
|
|
* PROGRAMER: Magnus Olsen (magnus@greatlord.com)
|
2021-09-13 01:33:14 +00:00
|
|
|
*
|
2007-03-14 20:24:57 +00:00
|
|
|
*/
|
|
|
|
|
2010-11-27 22:12:15 +00:00
|
|
|
#include <asm.inc>
|
|
|
|
|
|
|
|
PUBLIC _log10
|
2007-03-14 20:24:57 +00:00
|
|
|
|
|
|
|
/* FUNCTIONS ***************************************************************/
|
2010-11-27 22:12:15 +00:00
|
|
|
.code
|
2007-03-14 20:24:57 +00:00
|
|
|
|
|
|
|
_log10:
|
2007-07-08 15:33:38 +00:00
|
|
|
|
|
|
|
push ebp
|
|
|
|
mov ebp,esp
|
2007-07-08 16:09:29 +00:00
|
|
|
fld qword ptr [ebp+8] // Load real from stack
|
|
|
|
fldlg2 // Load log base 10 of 2
|
|
|
|
fxch st(1) // Exchange st, st(1)
|
|
|
|
fyl2x // Compute the log base 10(x)
|
2007-07-08 15:33:38 +00:00
|
|
|
pop ebp
|
|
|
|
ret
|
2007-03-14 20:24:57 +00:00
|
|
|
|
2010-11-27 22:12:15 +00:00
|
|
|
END
|