Skip to content

Commit

Permalink
arm64: ARM is NOT x86
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Jan 16, 2025
1 parent e4f7163 commit 0ebcd88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constantine/hashes/h_sha256.nim
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func hashMessageBlocks(
hashMessageBlocks_generic(s, message, numBlocks)
elif UseASM_ARM_64 and defined(macosx):
# All Apple Silicon Mac support SHA2 extension
hashMessageBlocks_x86_sha(s, message, numBlocks)
hashMessageBlocks_arm_sha(s, message, numBlocks)
else:
hashMessageBlocks_generic(s, message, numBlocks)

Expand Down
2 changes: 1 addition & 1 deletion constantine/hashes/sha256/sha256_arm64_sha2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import
# It makes for easier code to read but while Apple CPUs can prefetch up to 8 instructions ahead
# it's best to interleave independent instructions to maximize throughput with an out-of-order 9superscalar) processor.

func hashMessageBlocks_x86_sha*(
func hashMessageBlocks_arm_sha*(
H: var Sha256_state,
message: ptr UncheckedArray[byte],
numBlocks: uint)=
Expand Down

0 comments on commit 0ebcd88

Please sign in to comment.