mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[liba] Clean
Change-Id: Ic59df28d78ed02fb55fcf62e9d79434590194a93
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
/* See the "Run-time ABI for the ARM Architecture", Section 4.4.5 */
|
||||
/* See the "Run-time ABI for the ARM Architecture", Section 4.2 */
|
||||
|
||||
typedef int uint32_t;
|
||||
|
||||
long long __aeabi_llsr(long long value, int shift) {
|
||||
int low = ((int)value >> shift) | ((int)(value >> 32) << (32 - shift));
|
||||
int high = (int)value >> shift;
|
||||
uint32_t low = ((uint32_t)value >> shift) | ((uint32_t)(value >> 32) << (32 - shift));
|
||||
uint32_t high = (uint32_t)value >> shift;
|
||||
return ((long long)high << 32) | low;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
/* See the "Run-time ABI for the ARM Architecture", Section 4.3.3 */
|
||||
/* See the "Run-time ABI for the ARM Architecture", Section 4.3.4 */
|
||||
|
||||
void __aeabi_memclr(void * dest, size_t n) {
|
||||
memset(dest, 0, n);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
/* See the "Run-time ABI for the ARM Architecture", Section 4.3.3 */
|
||||
/* See the "Run-time ABI for the ARM Architecture", Section 4.3.4 */
|
||||
|
||||
void __aeabi_memcpy(void * dest, const void * src, size_t n) {
|
||||
memcpy(dest, src, n);
|
||||
|
||||
Reference in New Issue
Block a user