From a8b1633d1c6be133b9f684cc5cdd778bfd8d564e Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Thu, 2 Jun 2022 14:40:37 -0400 Subject: [PATCH] Use // instead of # for comments inside armv8 asm. Using # has slightly ambiguous with the preprocessor. Fixed: 496 Change-Id: Ib718dde957ee541d580096128405a7edde3b1bd4 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/52785 Reviewed-by: Adam Langley --- .../cipher_extra/asm/chacha20_poly1305_armv8.pl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl b/crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl index 24b5c9b76..9bd7f49d6 100644 --- a/crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl +++ b/crypto/cipher_extra/asm/chacha20_poly1305_armv8.pl @@ -378,9 +378,9 @@ chacha20_poly1305_seal: .cfi_offset w30, -72 .cfi_offset w29, -80 mov x29, sp -# We probably could do .cfi_def_cfa w29, 80 at this point, but since -# we don't actually use the frame pointer like that, it's probably not -# worth bothering. + // We probably could do .cfi_def_cfa w29, 80 at this point, but since + // we don't actually use the frame pointer like that, it's probably not + // worth bothering. stp d8, d9, [sp, #16] stp d10, d11, [sp, #32] stp d12, d13, [sp, #48] @@ -881,7 +881,7 @@ ___ &poly_add_vec($LEN_STORE); &poly_mul(); $code.=<<___; - # Final reduction step + // Final reduction step sub $t1, xzr, $one orr $t2, xzr, #3 subs $t0, $acc0, #-5 @@ -986,9 +986,9 @@ chacha20_poly1305_open: .cfi_offset w30, -72 .cfi_offset w29, -80 mov x29, sp -# We probably could do .cfi_def_cfa w29, 80 at this point, but since -# we don't actually use the frame pointer like that, it's probably not -# worth bothering. + // We probably could do .cfi_def_cfa w29, 80 at this point, but since + // we don't actually use the frame pointer like that, it's probably not + // worth bothering. stp d8, d9, [sp, #16] stp d10, d11, [sp, #32] stp d12, d13, [sp, #48] @@ -1502,7 +1502,7 @@ ___ &poly_add_vec($LEN_STORE); &poly_mul(); $code.=<<___; - # Final reduction step + // Final reduction step sub $t1, xzr, $one orr $t2, xzr, #3 subs $t0, $acc0, #-5