xref: /reactos/sdk/lib/crt/math/arm/__rt_sdiv.c (revision c2c66aff)
1 /*
2  * COPYRIGHT:       BSD - See COPYING.ARM in the top level directory
3  * PROJECT:         ReactOS CRT library
4  * FILE:            lib/sdk/crt/math/arm/__rt_sdiv.c
5  * PURPOSE:         Implementation of __rt_sdiv
6  * PROGRAMMER:      Timo Kreuzer
7  * REFERENCE:       http://research.microsoft.com/en-us/um/redmond/projects/invisible/src/crt/md/arm/_div10.s.htm
8  *                  http://research.microsoft.com/en-us/um/redmond/projects/invisible/src/crt/md/arm/_udiv.c.htm
9  */
10 
11 #define __rt_div_worker __rt_sdiv_worker
12 #define _SIGNED_DIV_
13 
14 #include "__rt_div_worker.h"
15 
16 ARM_DIVRESULT
17 __rt_sdiv(
18     int divisor,
19     int dividend)
20 {
21     ARM_DIVRESULT result;
22 
23     __rt_sdiv_worker(&result, divisor, dividend);
24     return result;
25 }
26 
27