diff options
author | alaviss <[email protected]> | 2017-07-06 00:38:20 +0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-07-05 10:38:20 -0700 |
commit | 688c94c5c03c693f91d48adcf4b8826f8e16c6fd (patch) | |
tree | c79374d70cfbca3bb61a80312691a518bee37101 /module/icp/asm-x86_64/sha2 | |
parent | 02dc43bc4615537e8e198170a0711e317c8e6dda (diff) |
Clang fixes
Clang doesn't support `/` as comment in assembly, this patch replaces
them with `#`.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Leorize <[email protected]>
Closes #6311
Diffstat (limited to 'module/icp/asm-x86_64/sha2')
-rw-r--r-- | module/icp/asm-x86_64/sha2/sha256_impl.S | 10 | ||||
-rw-r--r-- | module/icp/asm-x86_64/sha2/sha512_impl.S | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/module/icp/asm-x86_64/sha2/sha256_impl.S b/module/icp/asm-x86_64/sha2/sha256_impl.S index 867dbb0f2..766b75355 100644 --- a/module/icp/asm-x86_64/sha2/sha256_impl.S +++ b/module/icp/asm-x86_64/sha2/sha256_impl.S @@ -100,12 +100,12 @@ ENTRY_NP(SHA256TransformBlocks) mov %rdx,16*4+2*8(%rsp) # save end pointer, "3rd" arg mov %rbp,16*4+3*8(%rsp) # save copy of %rsp - /.picmeup %rbp - / The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts - / the address of the "next" instruction into the target register - / (%rbp). This generates these 2 instructions: + #.picmeup %rbp + # The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts + # the address of the "next" instruction into the target register + # (%rbp). This generates these 2 instructions: lea .Llea(%rip),%rbp - /nop / .picmeup generates a nop for mod 8 alignment--not needed here + #nop # .picmeup generates a nop for mod 8 alignment--not needed here .Llea: lea K256-.(%rbp),%rbp diff --git a/module/icp/asm-x86_64/sha2/sha512_impl.S b/module/icp/asm-x86_64/sha2/sha512_impl.S index 4acc72cbc..6e3761876 100644 --- a/module/icp/asm-x86_64/sha2/sha512_impl.S +++ b/module/icp/asm-x86_64/sha2/sha512_impl.S @@ -101,12 +101,12 @@ ENTRY_NP(SHA512TransformBlocks) mov %rdx,16*8+2*8(%rsp) # save end pointer, "3rd" arg mov %rbp,16*8+3*8(%rsp) # save copy of %rsp - /.picmeup %rbp - / The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts - / the address of the "next" instruction into the target register - / (%rbp). This generates these 2 instructions: + #.picmeup %rbp + # The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts + # the address of the "next" instruction into the target register + # (%rbp). This generates these 2 instructions: lea .Llea(%rip),%rbp - /nop / .picmeup generates a nop for mod 8 alignment--not needed here + #nop # .picmeup generates a nop for mod 8 alignment--not needed here .Llea: lea K512-.(%rbp),%rbp |