2015-04-11 12:44:55 +00:00
|
|
|
/*
|
2015-04-30 21:04:29 +00:00
|
|
|
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
|
|
|
|
* PROJECT: ReactOS CRT library
|
2015-04-11 12:44:55 +00:00
|
|
|
* PURPOSE: Implementation of __rt_sdiv64
|
|
|
|
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#include <kxarm.h>
|
|
|
|
|
2015-04-14 18:42:28 +00:00
|
|
|
IMPORT __rt_sdiv64_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
|
|
|
|
|
2015-04-14 18:42:28 +00:00
|
|
|
NESTED_ENTRY __rt_sdiv64
|
|
|
|
|
|
|
|
/* Allocate stack space and store parameters there */
|
|
|
|
stmdb sp!,{r0,r1,r2,r3,lr}
|
|
|
|
PROLOG_END
|
|
|
|
|
|
|
|
/* Load pointer to stack structure into R0 */
|
|
|
|
mov r0, sp
|
|
|
|
|
|
|
|
/* Call the C worker function */
|
|
|
|
adr lr, Return
|
|
|
|
b __rt_sdiv64_worker
|
2015-04-11 12:44:55 +00:00
|
|
|
|
2015-04-14 18:42:28 +00:00
|
|
|
Return
|
|
|
|
/* Move result data into the appropriate registers and return */
|
|
|
|
ldmia sp!,{r0,r1,r2,r3,pc}
|
2015-04-30 21:04:29 +00:00
|
|
|
NESTED_END __rt_sdiv64
|
2015-04-11 12:44:55 +00:00
|
|
|
|
|
|
|
END
|
|
|
|
/* EOF */
|