Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: wangcundashang <[email protected]>
  • Loading branch information
wangcundashang authored and oconnor663 committed Jul 3, 2024
1 parent 4b3fdf5 commit 1ce8099
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c/blake3.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ INLINE void hasher_merge_cv_stack(blake3_hasher *self, uint64_t total_len) {
// of the whole tree, and it would need to be ROOT finalized. We can't
// compress it until we know.
// 2) This 64 KiB input might complete a larger tree, whose root node is
// similarly going to be the the root of the whole tree. For example, maybe
// similarly going to be the root of the whole tree. For example, maybe
// we have 196 KiB (that is, 128 + 64) hashed so far. We can't compress the
// node at the root of the 256 KiB subtree until we know how to finalize it.
//
Expand Down
2 changes: 1 addition & 1 deletion c/blake3_neon.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ INLINE uint32x4_t set4(uint32_t a, uint32_t b, uint32_t c, uint32_t d) {
}

INLINE uint32x4_t rot16_128(uint32x4_t x) {
// The straightfoward implementation would be two shifts and an or, but that's
// The straightforward implementation would be two shifts and an or, but that's
// slower on microarchitectures we've tested. See
// https://github.com/BLAKE3-team/BLAKE3/pull/319.
// return vorrq_u32(vshrq_n_u32(x, 16), vshlq_n_u32(x, 32 - 16));
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ impl Hasher {
// the root node of the whole tree, and it would need to be ROOT
// finalized. We can't compress it until we know.
// 2) This 64 KiB input might complete a larger tree, whose root node is
// similarly going to be the the root of the whole tree. For example,
// similarly going to be the root of the whole tree. For example,
// maybe we have 196 KiB (that is, 128 + 64) hashed so far. We can't
// compress the node at the root of the 256 KiB subtree until we know
// how to finalize it.
Expand Down

0 comments on commit 1ce8099

Please sign in to comment.