You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The validation directory contains code to validate the Fortran hash functions against the original C/C++ codes. It consists of three executable applications:
1
+
The validation directory contains code to validate the Fortran hash functions against the original C/C++ codes. It consists of one executable `test_hash_functions` that:
2
2
3
-
*`generate_key_array.f90` - creates a file containing 2048 random 8 bit integers.
3
+
* creates a file containing 2048 random 8 bit integers using the subroutine
4
+
`generate_key_array`.
4
5
5
-
*`generate_hash_arrays.cpp` - reads the file generated by `generate_key_array.f90` and uses its contents to generate 2049 hashes for each hash algorithm and outputs files containing the hashes.
6
+
* reads the file generated by the subroutine `generate_key_array` and uses its contents to generate 2049 hashes for each C/C++ hash algorithm and outputs files containing the hashes.
6
7
7
-
*`hash_validity_test.f90`- reads the file generated by `generate_key_array.f90` and uses its contents to generate 2049 hashes for each hash algorithm and compares the result with the corresponding outputs of `generate_hash_arrays.cpp` reporting if the outputs are not equal.
8
-
9
-
Note the C code for nmhash assumes that the C compiler is either gcc or MSVC, and will not compile with the Intel C compiler.
8
+
* reads the file generated by the subroutine `generate_key_array` and uses its contents to generate 2049 hashes for each Fortran hash algorithm and compares the result with the corresponding outputs of C/C++ hash algorithms.
0 commit comments