mirror of
https://github.com/reactos/reactos.git
synced 2024-08-11 21:58:10 +00:00
f1e2c6cbd0
* Add Raman Masanin to copyrights * Add some comments * Return long long from __rt_sdiv (no functional difference, just for clarity)
28 lines
587 B
C
28 lines
587 B
C
/*
|
|
* PROJECT: ReactOS CRT library
|
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
|
* PURPOSE: Implementation of __rt_sdiv
|
|
* COPYRIGHT: Copyright 2015 Timo Kreuzer <timo.kreuzer@reactos.org>
|
|
* Copyright 2021 Raman Masanin <36927roma@gmail.com>
|
|
*/
|
|
|
|
#define __rt_div_worker __rt_sdiv_worker
|
|
#define _SIGNED_DIV_
|
|
|
|
#include "__rt_div_worker.h"
|
|
|
|
/*
|
|
* Returns quotient in R0, remainder in R1
|
|
*/
|
|
long long
|
|
__rt_sdiv(
|
|
int divisor,
|
|
int dividend)
|
|
{
|
|
ARM_DIVRESULT result;
|
|
|
|
__rt_sdiv_worker(divisor, dividend, &result);
|
|
|
|
return result.raw_data;
|
|
}
|