Skip to content

Commit

Permalink
Update fnv1a.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 21, 2024
1 parent 8ea059a commit 70f8ad2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions doc/hash2/reference/fnv1a.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ explicit fnv1a_32( std::uint64_t seed );
Constructor taking an integral seed value.

Effects: ::
Initializes the state as if by default construction, and then
* if `seed` is zero, does nothing;
* if `seed` is less than 2^32^, performs `update(p, 4)` where `p` points to a little-endian representation of the value of `seed`;
* otherwise, performs `update(p, 8)` where `p` points to a little-endian representation of the value of `seed`.
Initializes the state as if by default construction, then if `seed` is not zero, performs `update(p, 8)` where `p` points to a little-endian representation of the value of `seed`.

Remarks: ::
By convention, if `seed` is zero, the effect of this constructor is the same as default construction.
Expand Down Expand Up @@ -151,10 +148,7 @@ explicit fnv1a_64( std::uint64_t seed );
Constructor taking an integral seed value.

Effects: ::
Initializes the state as if by default construction, and then
* if `seed` is zero, does nothing;
* if `seed` is less than 2^32^, performs `update(p, 4)` where `p` points to a little-endian representation of the value of `seed`;
* otherwise, performs `update(p, 8)` where `p` points to a little-endian representation of the value of `seed`.
Initializes the state as if by default construction, then if `seed` is not zero, performs `update(p, 8)` where `p` points to a little-endian representation of the value of `seed`.

Remarks: ::
By convention, if `seed` is zero, the effect of this constructor is the same as default construction.
Expand Down

0 comments on commit 70f8ad2

Please sign in to comment.