Skip to content

Commit bb54138

Browse files
authored
Rewrite ARM64 PROLOGUE to make it compatible with xcode/ios
1 parent c0d570a commit bb54138

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

common_arm64.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,14 @@ static inline int blas_quickdivide(blasint x, blasint y){
103103

104104
#if defined(ASSEMBLER) && !defined(NEEDPARAM)
105105

106-
#define PROLOGUE \
107-
.text ;\
108-
.align 4 ;\
109-
.global REALNAME ;\
110-
.type REALNAME, %function ;\
106+
.macro PROLOGUE
107+
.text ;
108+
.p2align 2 ;
109+
.global REALNAME ;
110+
.type REALNAME, %function ;
111111
REALNAME:
112+
.endm
113+
112114

113115
#define EPILOGUE
114116

0 commit comments

Comments
 (0)