2015-04-11 12:44:55 +00:00
|
|
|
/*
|
2021-07-25 14:50:48 +00:00
|
|
|
* 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>
|
2015-04-11 12:44:55 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#include <kxarm.h>
|
|
|
|
|
2021-07-25 14:50:48 +00:00
|
|
|
IMPORT __dtou64_worker
|
|
|
|
|
2015-04-11 12:44:55 +00:00
|
|
|
/* CODE **********************************************************************/
|
2015-04-30 21:04:29 +00:00
|
|
|
|
2015-04-11 12:44:55 +00:00
|
|
|
TEXTAREA
|
|
|
|
|
2021-07-25 14:50:48 +00:00
|
|
|
/*
|
|
|
|
IN: d0 = double value
|
|
|
|
OUT: r1:r0 = uint64 value
|
|
|
|
*/
|
2015-04-11 12:44:55 +00:00
|
|
|
LEAF_ENTRY __dtou64
|
2021-07-25 14:50:48 +00:00
|
|
|
/* Allocate stack space and store parameters there */
|
|
|
|
push {lr}
|
|
|
|
PROLOG_END
|
2015-04-11 12:44:55 +00:00
|
|
|
|
2021-07-25 14:50:48 +00:00
|
|
|
/* Call the C worker function */
|
|
|
|
VMOV r0,d0[0]
|
|
|
|
VMOV r1,d0[1]
|
|
|
|
bl __dtou64_worker
|
2015-04-30 21:04:29 +00:00
|
|
|
|
2021-07-25 14:50:48 +00:00
|
|
|
/* Move result data into the appropriate registers and return */
|
|
|
|
pop {pc}
|
2015-04-11 12:44:55 +00:00
|
|
|
LEAF_END __dtou64
|
|
|
|
|
|
|
|
END
|
|
|
|
/* EOF */
|