Skip to content

Commit

Permalink
Merge pull request kmackay#191 from gridware/a-house-divided-cannot-s…
Browse files Browse the repository at this point in the history
…tand

asm_arm.inc: use RESUME_SYNTAX everywhere
  • Loading branch information
kmackay authored Mar 28, 2022
2 parents 24c60e2 + 625beef commit b335ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asm_arm.inc
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ uECC_VLI_API void uECC_vli_mult(uECC_word_t *result,
"str %[r3], [%[r0], %[r6]] \n\t" /* result[num_words * 2 - 1] = c0 */
"pop {%[r0]} \n\t" /* pop result off the stack */

".syntax divided \n\t"
RESUME_SYNTAX
: [r3] "+l" (num_words), [r4] "=&l" (r4),
[r5] "=&l" (r5), [r6] "=&l" (r6), [r7] "=&l" (r7)
: [r0] "l" (result), [r1] "l" (left), [r2] "l" (right)
Expand Down Expand Up @@ -805,7 +805,7 @@ uECC_VLI_API void uECC_vli_square(uECC_word_t *result,
"str %[r2], [%[r0], %[r5]] \n\t" /* result[num_words * 2 - 1] = c0 */
"pop {%[r0]} \n\t" /* pop result off the stack */

".syntax divided \n\t"
RESUME_SYNTAX
: [r2] "+l" (num_words), [r3] "=&l" (r3), [r4] "=&l" (r4),
[r5] "=&l" (r5), [r6] "=&l" (r6), [r7] "=&l" (r7)
: [r0] "l" (result), [r1] "l" (left)
Expand Down

0 comments on commit b335ee8

Please sign in to comment.