| … | … | @@ -1007,14 +1007,12 @@ int intintIdentityPerfectHash_SetupTable(intintHash_Table * table) { |
| 1007 | 1007 | (intintIdentityPerfectHash_Bucket *) & table-> |
| 1008 | 1008 | tableData[sizeof(intintIdentityPerfectHash_TableData)]; |
| 1009 | 1009 | if (intintHash_GetTableType(table) & ~HASH_SENTINEL_PERFECT_HASHES) { |
| 1010 | | int index; |
| 1011 | | for (index = 0; |
| 1010 | for (int index = 0; |
| 1012 | 1011 | index < |
| 1013 | 1012 | ((intintIdentityPerfectHash_TableData *) table-> |
| 1014 | 1013 | tableData)->numBuckets; index++) { |
| 1015 | 1014 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 1016 | | } |
| 1017 | | } |
| 1015 | }} |
| 1018 | 1016 | exitCode = HASH_EXIT_CODE_NORMAL; |
| 1019 | 1017 | return exitCode; |
| 1020 | 1018 | } |
| … | … | @@ -1023,14 +1021,12 @@ int intintIdentityPerfectHash_EmptyTable(intintHash_Table * table) { |
| 1023 | 1021 | intintIdentityPerfectHash_Bucket *buckets = |
| 1024 | 1022 | (intintIdentityPerfectHash_Bucket *) & table-> |
| 1025 | 1023 | tableData[sizeof(intintIdentityPerfectHash_TableData)]; |
| 1026 | | int index; |
| 1027 | | for (index = 0; |
| 1024 | for (int index = 0; |
| 1028 | 1025 | index < |
| 1029 | 1026 | ((intintIdentityPerfectHash_TableData *) table->tableData)-> |
| 1030 | 1027 | numBuckets; index++) { |
| 1031 | 1028 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 1032 | | } |
| 1033 | | exitCode = HASH_EXIT_CODE_NORMAL; |
| 1029 | } exitCode = HASH_EXIT_CODE_NORMAL; |
| 1034 | 1030 | return exitCode; |
| 1035 | 1031 | } |
| 1036 | 1032 | int intintIdentityPerfectHash_InnerQuerySingle(char *tableData, int key, |
| … | … | @@ -1780,14 +1776,12 @@ int intintIdentityPerfectOpenMPHash_SetupTable(intintHash_Table * table) { |
| 1780 | 1776 | (intintIdentityPerfectOpenMPHash_Bucket *) & table-> |
| 1781 | 1777 | tableData[sizeof(intintIdentityPerfectOpenMPHash_TableData)]; |
| 1782 | 1778 | if (intintHash_GetTableType(table) & ~HASH_SENTINEL_PERFECT_HASHES) { |
| 1783 | | int index; |
| 1784 | | for (index = 0; |
| 1779 | for (int index = 0; |
| 1785 | 1780 | index < |
| 1786 | 1781 | ((intintIdentityPerfectOpenMPHash_TableData *) table-> |
| 1787 | 1782 | tableData)->numBuckets; index++) { |
| 1788 | 1783 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 1789 | | } |
| 1790 | | } |
| 1784 | }} |
| 1791 | 1785 | exitCode = HASH_EXIT_CODE_NORMAL; |
| 1792 | 1786 | return exitCode; |
| 1793 | 1787 | } |
| … | … | @@ -1796,14 +1790,12 @@ int intintIdentityPerfectOpenMPHash_EmptyTable(intintHash_Table * table) { |
| 1796 | 1790 | intintIdentityPerfectOpenMPHash_Bucket *buckets = |
| 1797 | 1791 | (intintIdentityPerfectOpenMPHash_Bucket *) & table-> |
| 1798 | 1792 | tableData[sizeof(intintIdentityPerfectOpenMPHash_TableData)]; |
| 1799 | | int index; |
| 1800 | | for (index = 0; |
| 1793 | for (int index = 0; |
| 1801 | 1794 | index < |
| 1802 | 1795 | ((intintIdentityPerfectOpenMPHash_TableData *) table->tableData)-> |
| 1803 | 1796 | numBuckets; index++) { |
| 1804 | 1797 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 1805 | | } |
| 1806 | | exitCode = HASH_EXIT_CODE_NORMAL; |
| 1798 | } exitCode = HASH_EXIT_CODE_NORMAL; |
| 1807 | 1799 | return exitCode; |
| 1808 | 1800 | } |
| 1809 | 1801 | int intintIdentityPerfectOpenMPHash_InnerQuerySingle(char *tableData, int key, |
| … | … | @@ -2146,16 +2138,14 @@ int intintIdentitySentinelPerfectHash_SetupTable(intintHash_Table * table) { |
| 2146 | 2138 | (intintIdentitySentinelPerfectHash_Bucket *) & table-> |
| 2147 | 2139 | tableData[sizeof(intintIdentitySentinelPerfectHash_TableData)]; |
| 2148 | 2140 | if (intintHash_GetTableType(table) & ~HASH_SENTINEL_PERFECT_HASHES) { |
| 2149 | | int index; |
| 2150 | | for (index = 0; |
| 2141 | for (int index = 0; |
| 2151 | 2142 | index < |
| 2152 | 2143 | ((intintIdentitySentinelPerfectHash_TableData *) table-> |
| 2153 | 2144 | tableData)->numBuckets; index++) { |
| 2154 | 2145 | buckets[index].value = |
| 2155 | 2146 | ((intintIdentitySentinelPerfectHash_TableData *) |
| 2156 | 2147 | table->tableData)->emptyValue; |
| 2157 | | } |
| 2158 | | } |
| 2148 | }} |
| 2159 | 2149 | exitCode = HASH_EXIT_CODE_NORMAL; |
| 2160 | 2150 | return exitCode; |
| 2161 | 2151 | } |
| … | … | @@ -2164,16 +2154,14 @@ int intintIdentitySentinelPerfectHash_EmptyTable(intintHash_Table * table) { |
| 2164 | 2154 | intintIdentitySentinelPerfectHash_Bucket *buckets = |
| 2165 | 2155 | (intintIdentitySentinelPerfectHash_Bucket *) & table-> |
| 2166 | 2156 | tableData[sizeof(intintIdentitySentinelPerfectHash_TableData)]; |
| 2167 | | int index; |
| 2168 | | for (index = 0; |
| 2157 | for (int index = 0; |
| 2169 | 2158 | index < |
| 2170 | 2159 | ((intintIdentitySentinelPerfectHash_TableData *) table-> |
| 2171 | 2160 | tableData)->numBuckets; index++) { |
| 2172 | 2161 | buckets[index].value = |
| 2173 | 2162 | ((intintIdentitySentinelPerfectHash_TableData *) table-> |
| 2174 | 2163 | tableData)->emptyValue; |
| 2175 | | } |
| 2176 | | exitCode = HASH_EXIT_CODE_NORMAL; |
| 2164 | } exitCode = HASH_EXIT_CODE_NORMAL; |
| 2177 | 2165 | return exitCode; |
| 2178 | 2166 | } |
| 2179 | 2167 | int intintIdentitySentinelPerfectHash_InnerQuerySingle(char *tableData, int key, |
| … | … | @@ -2944,16 +2932,14 @@ int intintIdentitySentinelPerfectOpenMPHash_SetupTable(intintHash_Table * table) |
| 2944 | 2932 | tableData[sizeof |
| 2945 | 2933 | (intintIdentitySentinelPerfectOpenMPHash_TableData)]; |
| 2946 | 2934 | if (intintHash_GetTableType(table) & ~HASH_SENTINEL_PERFECT_HASHES) { |
| 2947 | | int index; |
| 2948 | | for (index = 0; |
| 2935 | for (int index = 0; |
| 2949 | 2936 | index < |
| 2950 | 2937 | ((intintIdentitySentinelPerfectOpenMPHash_TableData *) |
| 2951 | 2938 | table->tableData)->numBuckets; index++) { |
| 2952 | 2939 | buckets[index].value = |
| 2953 | 2940 | ((intintIdentitySentinelPerfectOpenMPHash_TableData |
| 2954 | 2941 | *) table->tableData)->emptyValue; |
| 2955 | | } |
| 2956 | | } |
| 2942 | }} |
| 2957 | 2943 | exitCode = HASH_EXIT_CODE_NORMAL; |
| 2958 | 2944 | return exitCode; |
| 2959 | 2945 | } |
| … | … | @@ -2963,16 +2949,14 @@ int intintIdentitySentinelPerfectOpenMPHash_EmptyTable(intintHash_Table * table) |
| 2963 | 2949 | (intintIdentitySentinelPerfectOpenMPHash_Bucket *) & table-> |
| 2964 | 2950 | tableData[sizeof |
| 2965 | 2951 | (intintIdentitySentinelPerfectOpenMPHash_TableData)]; |
| 2966 | | int index; |
| 2967 | | for (index = 0; |
| 2952 | for (int index = 0; |
| 2968 | 2953 | index < |
| 2969 | 2954 | ((intintIdentitySentinelPerfectOpenMPHash_TableData *) table-> |
| 2970 | 2955 | tableData)->numBuckets; index++) { |
| 2971 | 2956 | buckets[index].value = |
| 2972 | 2957 | ((intintIdentitySentinelPerfectOpenMPHash_TableData *) |
| 2973 | 2958 | table->tableData)->emptyValue; |
| 2974 | | } |
| 2975 | | exitCode = HASH_EXIT_CODE_NORMAL; |
| 2959 | } exitCode = HASH_EXIT_CODE_NORMAL; |
| 2976 | 2960 | return exitCode; |
| 2977 | 2961 | } |
| 2978 | 2962 | int intintIdentitySentinelPerfectOpenMPHash_InnerQuerySingle(char *tableData, |
| … | … | @@ -3316,14 +3300,12 @@ int intintLCGLinearOpenCompactHash_SetupTable(intintHash_Table * table) { |
| 3316 | 3300 | (intintLCGLinearOpenCompactHash_Bucket *) & table-> |
| 3317 | 3301 | tableData[sizeof(intintLCGLinearOpenCompactHash_TableData)]; |
| 3318 | 3302 | if (intintHash_GetTableType(table) & ~HASH_SENTINEL_PERFECT_HASHES) { |
| 3319 | | int index; |
| 3320 | | for (index = 0; |
| 3303 | for (int index = 0; |
| 3321 | 3304 | index < |
| 3322 | 3305 | ((intintLCGLinearOpenCompactHash_TableData *) table-> |
| 3323 | 3306 | tableData)->numBuckets; index++) { |
| 3324 | 3307 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 3325 | | } |
| 3326 | | } |
| 3308 | }} |
| 3327 | 3309 | exitCode = HASH_EXIT_CODE_NORMAL; |
| 3328 | 3310 | return exitCode; |
| 3329 | 3311 | } |
| … | … | @@ -3332,14 +3314,12 @@ int intintLCGLinearOpenCompactHash_EmptyTable(intintHash_Table * table) { |
| 3332 | 3314 | intintLCGLinearOpenCompactHash_Bucket *buckets = |
| 3333 | 3315 | (intintLCGLinearOpenCompactHash_Bucket *) & table-> |
| 3334 | 3316 | tableData[sizeof(intintLCGLinearOpenCompactHash_TableData)]; |
| 3335 | | int index; |
| 3336 | | for (index = 0; |
| 3317 | for (int index = 0; |
| 3337 | 3318 | index < |
| 3338 | 3319 | ((intintLCGLinearOpenCompactHash_TableData *) table->tableData)-> |
| 3339 | 3320 | numBuckets; index++) { |
| 3340 | 3321 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 3341 | | } |
| 3342 | | exitCode = HASH_EXIT_CODE_NORMAL; |
| 3322 | } exitCode = HASH_EXIT_CODE_NORMAL; |
| 3343 | 3323 | return exitCode; |
| 3344 | 3324 | } |
| 3345 | 3325 | int intintLCGLinearOpenCompactHash_InnerQuerySingle(char *tableData, int key, |
| … | … | @@ -4214,14 +4194,12 @@ int intintLCGLinearOpenCompactOpenMPHash_SetupTable(intintHash_Table * table) { |
| 4214 | 4194 | (intintLCGLinearOpenCompactOpenMPHash_Bucket *) & table-> |
| 4215 | 4195 | tableData[sizeof(intintLCGLinearOpenCompactOpenMPHash_TableData)]; |
| 4216 | 4196 | if (intintHash_GetTableType(table) & ~HASH_SENTINEL_PERFECT_HASHES) { |
| 4217 | | int index; |
| 4218 | | for (index = 0; |
| 4197 | for (int index = 0; |
| 4219 | 4198 | index < |
| 4220 | 4199 | ((intintLCGLinearOpenCompactOpenMPHash_TableData *) table-> |
| 4221 | 4200 | tableData)->numBuckets; index++) { |
| 4222 | 4201 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 4223 | | } |
| 4224 | | } |
| 4202 | }} |
| 4225 | 4203 | exitCode = HASH_EXIT_CODE_NORMAL; |
| 4226 | 4204 | return exitCode; |
| 4227 | 4205 | } |
| … | … | @@ -4230,14 +4208,12 @@ int intintLCGLinearOpenCompactOpenMPHash_EmptyTable(intintHash_Table * table) { |
| 4230 | 4208 | intintLCGLinearOpenCompactOpenMPHash_Bucket *buckets = |
| 4231 | 4209 | (intintLCGLinearOpenCompactOpenMPHash_Bucket *) & table-> |
| 4232 | 4210 | tableData[sizeof(intintLCGLinearOpenCompactOpenMPHash_TableData)]; |
| 4233 | | int index; |
| 4234 | | for (index = 0; |
| 4211 | for (int index = 0; |
| 4235 | 4212 | index < |
| 4236 | 4213 | ((intintLCGLinearOpenCompactOpenMPHash_TableData *) table-> |
| 4237 | 4214 | tableData)->numBuckets; index++) { |
| 4238 | 4215 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 4239 | | } |
| 4240 | | exitCode = HASH_EXIT_CODE_NORMAL; |
| 4216 | } exitCode = HASH_EXIT_CODE_NORMAL; |
| 4241 | 4217 | return exitCode; |
| 4242 | 4218 | } |
| 4243 | 4219 | int intintLCGLinearOpenCompactOpenMPHash_InnerQuerySingle(char *tableData, |
| … | … | @@ -4684,14 +4660,12 @@ int intintLCGQuadraticOpenCompactHash_SetupTable(intintHash_Table * table) { |
| 4684 | 4660 | (intintLCGQuadraticOpenCompactHash_Bucket *) & table-> |
| 4685 | 4661 | tableData[sizeof(intintLCGQuadraticOpenCompactHash_TableData)]; |
| 4686 | 4662 | if (intintHash_GetTableType(table) & ~HASH_SENTINEL_PERFECT_HASHES) { |
| 4687 | | int index; |
| 4688 | | for (index = 0; |
| 4663 | for (int index = 0; |
| 4689 | 4664 | index < |
| 4690 | 4665 | ((intintLCGQuadraticOpenCompactHash_TableData *) table-> |
| 4691 | 4666 | tableData)->numBuckets; index++) { |
| 4692 | 4667 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 4693 | | } |
| 4694 | | } |
| 4668 | }} |
| 4695 | 4669 | exitCode = HASH_EXIT_CODE_NORMAL; |
| 4696 | 4670 | return exitCode; |
| 4697 | 4671 | } |
| … | … | @@ -4700,14 +4674,12 @@ int intintLCGQuadraticOpenCompactHash_EmptyTable(intintHash_Table * table) { |
| 4700 | 4674 | intintLCGQuadraticOpenCompactHash_Bucket *buckets = |
| 4701 | 4675 | (intintLCGQuadraticOpenCompactHash_Bucket *) & table-> |
| 4702 | 4676 | tableData[sizeof(intintLCGQuadraticOpenCompactHash_TableData)]; |
| 4703 | | int index; |
| 4704 | | for (index = 0; |
| 4677 | for (int index = 0; |
| 4705 | 4678 | index < |
| 4706 | 4679 | ((intintLCGQuadraticOpenCompactHash_TableData *) table-> |
| 4707 | 4680 | tableData)->numBuckets; index++) { |
| 4708 | 4681 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 4709 | | } |
| 4710 | | exitCode = HASH_EXIT_CODE_NORMAL; |
| 4682 | } exitCode = HASH_EXIT_CODE_NORMAL; |
| 4711 | 4683 | return exitCode; |
| 4712 | 4684 | } |
| 4713 | 4685 | int intintLCGQuadraticOpenCompactHash_InnerQuerySingle(char *tableData, int key, |
| … | … | @@ -5626,14 +5598,12 @@ int intintLCGQuadraticOpenCompactOpenMPHash_SetupTable(intintHash_Table * table) |
| 5626 | 5598 | tableData[sizeof |
| 5627 | 5599 | (intintLCGQuadraticOpenCompactOpenMPHash_TableData)]; |
| 5628 | 5600 | if (intintHash_GetTableType(table) & ~HASH_SENTINEL_PERFECT_HASHES) { |
| 5629 | | int index; |
| 5630 | | for (index = 0; |
| 5601 | for (int index = 0; |
| 5631 | 5602 | index < |
| 5632 | 5603 | ((intintLCGQuadraticOpenCompactOpenMPHash_TableData *) |
| 5633 | 5604 | table->tableData)->numBuckets; index++) { |
| 5634 | 5605 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 5635 | | } |
| 5636 | | } |
| 5606 | }} |
| 5637 | 5607 | exitCode = HASH_EXIT_CODE_NORMAL; |
| 5638 | 5608 | return exitCode; |
| 5639 | 5609 | } |
| … | … | @@ -5643,14 +5613,12 @@ int intintLCGQuadraticOpenCompactOpenMPHash_EmptyTable(intintHash_Table * table) |
| 5643 | 5613 | (intintLCGQuadraticOpenCompactOpenMPHash_Bucket *) & table-> |
| 5644 | 5614 | tableData[sizeof |
| 5645 | 5615 | (intintLCGQuadraticOpenCompactOpenMPHash_TableData)]; |
| 5646 | | int index; |
| 5647 | | for (index = 0; |
| 5616 | for (int index = 0; |
| 5648 | 5617 | index < |
| 5649 | 5618 | ((intintLCGQuadraticOpenCompactOpenMPHash_TableData *) table-> |
| 5650 | 5619 | tableData)->numBuckets; index++) { |
| 5651 | 5620 | buckets[index].key = HASH_BUCKET_STATUS_EMPTY; |
| 5652 | | } |
| 5653 | | exitCode = HASH_EXIT_CODE_NORMAL; |
| 5621 | } exitCode = HASH_EXIT_CODE_NORMAL; |
| 5654 | 5622 | return exitCode; |
| 5655 | 5623 | } |
| 5656 | 5624 | int intintLCGQuadraticOpenCompactOpenMPHash_InnerQuerySingle(char *tableData, |