mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
37 lines
898 B
ArmAsm
37 lines
898 B
ArmAsm
/*
|
|
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
|
|
* PROJECT: ReactOS CRT library
|
|
* PURPOSE: Implementation of __rt_udiv64
|
|
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
|
*/
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
#include <kxarm.h>
|
|
|
|
IMPORT __rt_udiv64_worker
|
|
|
|
/* CODE **********************************************************************/
|
|
|
|
TEXTAREA
|
|
|
|
NESTED_ENTRY __rt_udiv64
|
|
|
|
/* 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_udiv64_worker
|
|
|
|
Return
|
|
/* Move result data into the appropriate registers and return */
|
|
ldmia sp!,{r0,r1,r2,r3,pc}
|
|
NESTED_END __rt_udiv64
|
|
|
|
END
|
|
/* EOF */
|