1/* 2 * COPYRIGHT: BSD - See COPYING.ARM in the top level directory 3 * PROJECT: ReactOS CRT library 4 * PURPOSE: Implementation of __rt_sdiv64 5 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org) 6 */ 7 8/* INCLUDES ******************************************************************/ 9 10#include <kxarm.h> 11 12 IMPORT __rt_sdiv64_worker 13 14/* CODE **********************************************************************/ 15 16 TEXTAREA 17 18 NESTED_ENTRY __rt_sdiv64 19 20 /* Allocate stack space and store parameters there */ 21 stmdb sp!,{r0,r1,r2,r3,lr} 22 PROLOG_END 23 24 /* Load pointer to stack structure into R0 */ 25 mov r0, sp 26 27 /* Call the C worker function */ 28 adr lr, Return 29 b __rt_sdiv64_worker 30 31Return 32 /* Move result data into the appropriate registers and return */ 33 ldmia sp!,{r0,r1,r2,r3,pc} 34 NESTED_END __rt_sdiv64 35 36 END 37/* EOF */ 38