aboutsummaryrefslogtreecommitdiff
path: root/networking/tls_pstm_montgomery_reduce.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/tls_pstm_montgomery_reduce.c')
-rw-r--r--networking/tls_pstm_montgomery_reduce.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/tls_pstm_montgomery_reduce.c b/networking/tls_pstm_montgomery_reduce.c
index d46e2aa2b..20f9c26d5 100644
--- a/networking/tls_pstm_montgomery_reduce.c
+++ b/networking/tls_pstm_montgomery_reduce.c
@@ -73,7 +73,7 @@ asm( \
73 "movl %%edx,%1 \n\t" \ 73 "movl %%edx,%1 \n\t" \
74:"=g"(_c[LO]), "=r"(cy) \ 74:"=g"(_c[LO]), "=r"(cy) \
75:"0"(_c[LO]), "1"(cy), "g"(mu), "g"(*tmpm++) \ 75:"0"(_c[LO]), "1"(cy), "g"(mu), "g"(*tmpm++) \
76: "%eax", "%edx", "%cc") 76: "%eax", "%edx", "cc")
77 77
78#define PROPCARRY \ 78#define PROPCARRY \
79asm( \ 79asm( \
@@ -82,7 +82,7 @@ asm( \
82 "movzbl %%al,%1 \n\t" \ 82 "movzbl %%al,%1 \n\t" \
83:"=g"(_c[LO]), "=r"(cy) \ 83:"=g"(_c[LO]), "=r"(cy) \
84:"0"(_c[LO]), "1"(cy) \ 84:"0"(_c[LO]), "1"(cy) \
85: "%eax", "%cc") 85: "%eax", "cc")
86 86
87/******************************************************************************/ 87/******************************************************************************/
88#elif defined(PSTM_X86_64) 88#elif defined(PSTM_X86_64)
@@ -235,7 +235,7 @@ asm( \
235 " STR r0,%1 \n\t" \ 235 " STR r0,%1 \n\t" \
236 :"=r"(cy),"=m"(_c[0])\ 236 :"=r"(cy),"=m"(_c[0])\
237 :"0"(cy),"r"(mu),"r"(*tmpm++),"m"(_c[0])\ 237 :"0"(cy),"r"(mu),"r"(*tmpm++),"m"(_c[0])\
238 :"r0","%cc"); 238 :"r0","cc");
239#define PROPCARRY \ 239#define PROPCARRY \
240asm( \ 240asm( \
241 " LDR r0,%1 \n\t" \ 241 " LDR r0,%1 \n\t" \
@@ -246,7 +246,7 @@ asm( \
246 " MOVCC %0,#0 \n\t" \ 246 " MOVCC %0,#0 \n\t" \
247 :"=r"(cy),"=m"(_c[0])\ 247 :"=r"(cy),"=m"(_c[0])\
248 :"0"(cy),"m"(_c[0])\ 248 :"0"(cy),"m"(_c[0])\
249 :"r0","%cc"); 249 :"r0","cc");
250#else /* Non-Thumb2 code */ 250#else /* Non-Thumb2 code */
251//#pragma message ("Using 32 bit ARM Assembly Optimizations") 251//#pragma message ("Using 32 bit ARM Assembly Optimizations")
252#define INNERMUL \ 252#define INNERMUL \
@@ -259,7 +259,7 @@ asm( \
259 " STR r0,%1 \n\t" \ 259 " STR r0,%1 \n\t" \
260 :"=r"(cy),"=m"(_c[0])\ 260 :"=r"(cy),"=m"(_c[0])\
261 :"0"(cy),"r"(mu),"r"(*tmpm++),"m"(_c[0])\ 261 :"0"(cy),"r"(mu),"r"(*tmpm++),"m"(_c[0])\
262 :"r0","%cc"); 262 :"r0","cc");
263#define PROPCARRY \ 263#define PROPCARRY \
264asm( \ 264asm( \
265 " LDR r0,%1 \n\t" \ 265 " LDR r0,%1 \n\t" \
@@ -269,7 +269,7 @@ asm( \
269 " MOVCC %0,#0 \n\t" \ 269 " MOVCC %0,#0 \n\t" \
270 :"=r"(cy),"=m"(_c[0])\ 270 :"=r"(cy),"=m"(_c[0])\
271 :"0"(cy),"m"(_c[0])\ 271 :"0"(cy),"m"(_c[0])\
272 :"r0","%cc"); 272 :"r0","cc");
273#endif /* __thumb2__ */ 273#endif /* __thumb2__ */
274 274
275 275