[CRT/arm] Update file headers to new format and change license to MIT

* Add Raman Masanin to copyrights
* Add some comments
* Return long long from __rt_sdiv (no functional difference, just for clarity)
This commit is contained in:
Timo Kreuzer 2021-07-24 11:41:06 +02:00
parent 9a42267b06
commit f1e2c6cbd0
6 changed files with 55 additions and 158 deletions

View file

@ -1,11 +1,9 @@
/*
* 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
* 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
@ -13,7 +11,10 @@
#include "__rt_div_worker.h"
unsigned long long
/*
* Returns quotient in R0, remainder in R1
*/
long long
__rt_sdiv(
int divisor,
int dividend)
@ -24,4 +25,3 @@ __rt_sdiv(
return result.raw_data;
}