Skip to content

Commit 9b6ce56

Browse files
committed
Fixed typos
I fixed various typos found when a sell checking application viewed the file. I also added "(since version 10)" after gfortran in describing which compilers default to integer overflow mapping. [ticket: X]
1 parent 3863d1c commit 9b6ce56

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/specs/stdlib_hash_procedures.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ so the modules use signed integer arithmetic. For that reason
301301
trapping on signed arithmetic must be disabled. The command line
302302
flags to disable overflow detection for compilers implementing
303303
submodules are summarized in the table below.
304-
Note that FLANG, gfortran, ifort, and NAG all default to
304+
Note that FLANG, gfortran (since version 10), ifort, and NAG all default to
305305
integer overflow wrapping.
306306

307307
|Compiler|Legal flag|Illegal flag|Default|
@@ -378,7 +378,7 @@ The `stdlib_64_bit_hash_functions` module also provides
378378
implementations of four hash code algorithms:
379379
the *FNV_1* and *FNV_1A* variants of Glenn Fowler,
380380
Landon Curt Noll, and Kiem-Phong Vo;
381-
the *pengynash* of Alberto Fajardo;
381+
the *pengyhash* of Alberto Fajardo;
382382
and the *SpookyHash* of Bob Jenkins.
383383
The detailed implementation of each algorithm is handled in a separate
384384
submodule: `stdlib_64_bit_fnv_hashes`,
@@ -412,7 +412,7 @@ While they do not at all perform well on the SMHasher test suite,
412412
usage indicates that that that this has little impact on the
413413
performance of small hash tables, and the small size of the functions
414414
allows their quick loading and retainment in the instruction cache,
415-
givng a performance boost where the hashing is intermittent.
415+
giving a performance boost where the hashing is intermittent.
416416
(See the
417417
[SMHasher discussion](https://github.com/rurban/smhasher/README.md)
418418
and S. Richter, V. Alvarez, and J. Dittrich,
@@ -745,7 +745,7 @@ and on output it will be different from the input `seed`.
745745

746746
Currently there are no known bad seeds for `NMHASH32X`, but if any are
747747
identified the procedure will be revised so that they cannot be
748-
returned. This subroutine uses Fortran's intrinsic
748+
returned. This subroutine uses Fortran's intrinsic
749749
`RANDOM_NUMBER` and the values returned can be changed by calling the
750750
intrinsic `RANDOM_INIT`.
751751

@@ -1277,7 +1277,7 @@ The result is a scalar integer of kind `INT32`.
12771277

12781278
`FNV_1A` is an implementation of the alternative FNV-1a hash code of
12791279
Glenn Fowler, Landon Curt Noll, and Phong Vo.
1280-
It differs from typical implementations in that it also ecodes the
1280+
It differs from typical implementations in that it also encodes the
12811281
size of the structure in the hash code.
12821282
This code is relatively fast on short keys, and is small enough that it
12831283
will often be retained in the instruction cache if hashing is
@@ -1603,7 +1603,7 @@ It multiplies the `KEY` by `SEED`, and returns the
16031603
### Test Codes
16041604

16051605
The Fortran Standard Library provides two categories of test
1606-
codes. One ccategory is tests of the relative performance of the
1606+
codes. One category is tests of the relative performance of the
16071607
various hash functions. The other is a comparison of the outputs of
16081608
the Fortran hash functions, with the outputs of the C and C++ hash
16091609
procedures that are the inspiration for the Fortran hash functions.
@@ -1725,8 +1725,8 @@ integers of kind `INT8`, and stores that sequence in the binary file
17251725
the values in `key_array.bin`, and, for each complicated hash
17261726
procedure generates a corresponding binary file containing 2049 hash
17271727
values generated from the values in `key_array.bin`. The third
1728-
executsble, `hash_validity_test`, reads the binary files and for each
1728+
executable, `hash_validity_test`, reads the binary files and for each
17291729
complicated hash procedure compares the contents of the binary file
17301730
with the results of calculating hash values using the corresponding
17311731
Fortran hash procedure on the same keys. These executables must be run
1732-
manually in the same ordeer.
1732+
manually in the same order.

0 commit comments

Comments
 (0)