mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +00:00
27 lines
732 B
C
27 lines
732 B
C
/*
|
|
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
|
|
* PROJECT: ReactOS CRT library
|
|
* FILE: lib/sdk/crt/math/arm/__rt_sdiv.c
|
|
* PURPOSE: Implementation of __rt_sdiv
|
|
* PROGRAMMER: Timo Kreuzer
|
|
* REFERENCE: http://research.microsoft.com/en-us/um/redmond/projects/invisible/src/crt/md/arm/_div10.s.htm
|
|
* http://research.microsoft.com/en-us/um/redmond/projects/invisible/src/crt/md/arm/_udiv.c.htm
|
|
*/
|
|
|
|
#define __rt_div_worker __rt_sdiv_worker
|
|
#define _SIGNED_DIV_
|
|
|
|
#include "__rt_div_worker.h"
|
|
|
|
ARM_DIVRESULT
|
|
__rt_sdiv(
|
|
int divisor,
|
|
int dividend)
|
|
{
|
|
ARM_DIVRESULT result;
|
|
|
|
__rt_sdiv_worker(&result, divisor, dividend);
|
|
return result;
|
|
}
|
|
|