reactos/sdk/lib/crt/math/arm/__dtou64.s
2021-07-30 14:20:23 +03:00

39 lines
911 B
ArmAsm

/*
* PROJECT: ReactOS CRT library
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: Implementation of __dtou64
* COPYRIGHT: Copyright 2015 Timo Kreuzer <timo.kreuzer@reactos.org>
* Copyright 2021 Roman Masanin <36927roma@gmail.com>
*/
/* INCLUDES ******************************************************************/
#include <kxarm.h>
IMPORT __dtou64_worker
/* CODE **********************************************************************/
TEXTAREA
/*
IN: d0 = double value
OUT: r1:r0 = uint64 value
*/
LEAF_ENTRY __dtou64
/* Allocate stack space and store parameters there */
push {lr}
PROLOG_END
/* Call the C worker function */
VMOV r0,d0[0]
VMOV r1,d0[1]
bl __dtou64_worker
/* Move result data into the appropriate registers and return */
pop {pc}
LEAF_END __dtou64
END
/* EOF */