File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
libs/libc/machine/arm/armv7-m/gnu Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 34
34
35
35
#include "arm_asm.h"
36
36
37
+ #ifdef __ARM_BIG_ENDIAN
38
+ #define S2LO lsl
39
+ #define S2LOEQ lsleq
40
+ #define S2HI lsr
41
+ #define MSB 0x000000ff
42
+ #define LSB 0xff000000
43
+ #define BYTE0_OFFSET 24
44
+ #define BYTE1_OFFSET 16
45
+ #define BYTE2_OFFSET 8
46
+ #define BYTE3_OFFSET 0
47
+ #else / * not __ARM_BIG_ENDIAN * /
48
+ #define S2LO lsr
49
+ #define S2LOEQ lsreq
50
+ #define S2HI lsl
51
+ #define BYTE0_OFFSET 0
52
+ #define BYTE1_OFFSET 8
53
+ #define BYTE2_OFFSET 16
54
+ #define BYTE3_OFFSET 24
55
+ #define MSB 0xff000000
56
+ #define LSB 0x000000ff
57
+ #endif / * not __ARM_BIG_ENDIAN * /
58
+
37
59
/ * Parameters and result. * /
38
60
#define src1 r0
39
61
#define src2 r1
46
68
#define tmp1 r12
47
69
#define syndrome r12 / * Overlaps tmp1 * /
48
70
71
+ .macro def_fn f p2align= 0
72
+ .text
73
+ .p2align \p2align
74
+ . global \f
75
+ .type \f , %function
76
+ \f:
77
+ .endm
78
+
49
79
.thumb
50
80
.syntax unified
51
81
def_fn strcmp
You can’t perform that action at this time.
0 commit comments