mirror of
https://github.com/reactos/reactos.git
synced 2024-09-22 18:45:51 +00:00
a3623f23de
- Make all x86assembly ML compatible - Remove memcpy, it was duplicated from memmove, copy the label instead - Guard some code against compilation on msvc, as these functions are intrinsics on MSVC and cannot be implemented - Fix some x64 assembly (don't modify stack below rsp) svn path=/branches/cmake-bringup/; revision=49421
30 lines
680 B
ArmAsm
30 lines
680 B
ArmAsm
|
|
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* PURPOSE:
|
|
* FILE:
|
|
* PROGRAMER: Magnus Olsen (magnus@greatlord.com)
|
|
*
|
|
*/
|
|
|
|
#include <reactos/asm.h>
|
|
|
|
PUBLIC _log10
|
|
|
|
/* FUNCTIONS ***************************************************************/
|
|
.code
|
|
|
|
_log10:
|
|
|
|
push ebp
|
|
mov ebp,esp
|
|
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)
|
|
pop ebp
|
|
ret
|
|
|
|
END
|