[liba] Clean

Change-Id: Ic59df28d78ed02fb55fcf62e9d79434590194a93
This commit is contained in:
Émilie Feral
2017-05-22 13:15:14 +02:00
parent 8059aeabdc
commit 45fa0ac0a8
3 changed files with 7 additions and 5 deletions

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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);