city_test.cc
Go to the documentation of this file.
00001 // Copyright 2018 The Abseil Authors.
00002 //
00003 // Licensed under the Apache License, Version 2.0 (the "License");
00004 // you may not use this file except in compliance with the License.
00005 // You may obtain a copy of the License at
00006 //
00007 //      https://www.apache.org/licenses/LICENSE-2.0
00008 //
00009 // Unless required by applicable law or agreed to in writing, software
00010 // distributed under the License is distributed on an "AS IS" BASIS,
00011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012 // See the License for the specific language governing permissions and
00013 // limitations under the License.
00014 
00015 #include "absl/hash/internal/city.h"
00016 
00017 #include <string.h>
00018 #include <cstdio>
00019 #include <iostream>
00020 #include "gtest/gtest.h"
00021 
00022 namespace absl {
00023 namespace hash_internal {
00024 
00025 static const uint64_t k0 = 0xc3a5c85c97cb3127ULL;
00026 static const uint64_t kSeed0 = 1234567;
00027 static const uint64_t kSeed1 = k0;
00028 static const int kDataSize = 1 << 20;
00029 static const int kTestSize = 300;
00030 
00031 static char data[kDataSize];
00032 
00033 // Initialize data to pseudorandom values.
00034 void setup() {
00035   uint64_t a = 9;
00036   uint64_t b = 777;
00037   for (int i = 0; i < kDataSize; i++) {
00038     a += b;
00039     b += a;
00040     a = (a ^ (a >> 41)) * k0;
00041     b = (b ^ (b >> 41)) * k0 + i;
00042     uint8_t u = b >> 37;
00043     memcpy(data + i, &u, 1);  // uint8_t -> char
00044   }
00045 }
00046 
00047 #define C(x) 0x##x##ULL
00048 static const uint64_t testdata[kTestSize][4] = {
00049     {C(9ae16a3b2f90404f), C(75106db890237a4a), C(3feac5f636039766),
00050      C(dc56d17a)},
00051     {C(541150e87f415e96), C(1aef0d24b3148a1a), C(bacc300e1e82345a),
00052      C(99929334)},
00053     {C(f3786a4b25827c1), C(34ee1a2bf767bd1c), C(2f15ca2ebfb631f2), C(4252edb7)},
00054     {C(ef923a7a1af78eab), C(79163b1e1e9a9b18), C(df3b2aca6e1e4a30),
00055      C(ebc34f3c)},
00056     {C(11df592596f41d88), C(843ec0bce9042f9c), C(cce2ea1e08b1eb30),
00057      C(26f2b463)},
00058     {C(831f448bdc5600b3), C(62a24be3120a6919), C(1b44098a41e010da),
00059      C(b042c047)},
00060     {C(3eca803e70304894), C(d80de767e4a920a), C(a51cfbb292efd53d), C(e73bb0a8)},
00061     {C(1b5a063fb4c7f9f1), C(318dbc24af66dee9), C(10ef7b32d5c719af),
00062      C(91dfdd75)},
00063     {C(a0f10149a0e538d6), C(69d008c20f87419f), C(41b36376185b3e9e),
00064      C(c87f95de)},
00065     {C(fb8d9c70660b910b), C(a45b0cc3476bff1b), C(b28d1996144f0207),
00066      C(3f5538ef)},
00067     {C(236827beae282a46), C(e43970221139c946), C(4f3ac6faa837a3aa),
00068      C(70eb1a1f)},
00069     {C(c385e435136ecf7c), C(d9d17368ff6c4a08), C(1b31eed4e5251a67),
00070      C(cfd63b83)},
00071     {C(e3f6828b6017086d), C(21b4d1900554b3b0), C(bef38be1809e24f1),
00072      C(894a52ef)},
00073     {C(851fff285561dca0), C(4d1277d73cdf416f), C(28ccffa61010ebe2),
00074      C(9cde6a54)},
00075     {C(61152a63595a96d9), C(d1a3a91ef3a7ba45), C(443b6bb4a493ad0c),
00076      C(6c4898d5)},
00077     {C(44473e03be306c88), C(30097761f872472a), C(9fd1b669bfad82d7),
00078      C(13e1978e)},
00079     {C(3ead5f21d344056), C(fb6420393cfb05c3), C(407932394cbbd303), C(51b4ba8)},
00080     {C(6abbfde37ee03b5b), C(83febf188d2cc113), C(cda7b62d94d5b8ee),
00081      C(b6b06e40)},
00082     {C(943e7ed63b3c080), C(1ef207e9444ef7f8), C(ef4a9f9f8c6f9b4a), C(240a2f2)},
00083     {C(d72ce05171ef8a1a), C(c6bd6bd869203894), C(c760e6396455d23a),
00084      C(5dcefc30)},
00085     {C(4182832b52d63735), C(337097e123eea414), C(b5a72ca0456df910),
00086      C(7a48b105)},
00087     {C(d6cdae892584a2cb), C(58de0fa4eca17dcd), C(43df30b8f5f1cb00),
00088      C(fd55007b)},
00089     {C(5c8e90bc267c5ee4), C(e9ae044075d992d9), C(f234cbfd1f0a1e59),
00090      C(6b95894c)},
00091     {C(bbd7f30ac310a6f3), C(b23b570d2666685f), C(fb13fb08c9814fe7),
00092      C(3360e827)},
00093     {C(36a097aa49519d97), C(8204380a73c4065), C(77c2004bdd9e276a), C(45177e0b)},
00094     {C(dc78cb032c49217), C(112464083f83e03a), C(96ae53e28170c0f5), C(7c6fffe4)},
00095     {C(441593e0da922dfe), C(936ef46061469b32), C(204a1921197ddd87),
00096      C(bbc78da4)},
00097     {C(2ba3883d71cc2133), C(72f2bbb32bed1a3c), C(27e1bd96d4843251),
00098      C(c5c25d39)},
00099     {C(f2b6d2adf8423600), C(7514e2f016a48722), C(43045743a50396ba),
00100      C(b6e5d06e)},
00101     {C(38fffe7f3680d63c), C(d513325255a7a6d1), C(31ed47790f6ca62f),
00102      C(6178504e)},
00103     {C(b7477bf0b9ce37c6), C(63b1c580a7fd02a4), C(f6433b9f10a5dac), C(bd4c3637)},
00104     {C(55bdb0e71e3edebd), C(c7ab562bcf0568bc), C(43166332f9ee684f),
00105      C(6e7ac474)},
00106     {C(782fa1b08b475e7), C(fb7138951c61b23b), C(9829105e234fb11e), C(1fb4b518)},
00107     {C(c5dc19b876d37a80), C(15ffcff666cfd710), C(e8c30c72003103e2),
00108      C(31d13d6d)},
00109     {C(5e1141711d2d6706), C(b537f6dee8de6933), C(3af0a1fbbe027c54),
00110      C(26fa72e3)},
00111     {C(782edf6da001234f), C(f48cbd5c66c48f3), C(808754d1e64e2a32), C(6a7433bf)},
00112     {C(d26285842ff04d44), C(8f38d71341eacca9), C(5ca436f4db7a883c),
00113      C(4e6df758)},
00114     {C(c6ab830865a6bae6), C(6aa8e8dd4b98815c), C(efe3846713c371e5),
00115      C(d57f63ea)},
00116     {C(44b3a1929232892), C(61dca0e914fc217), C(a607cc142096b964), C(52ef73b3)},
00117     {C(4b603d7932a8de4f), C(fae64c464b8a8f45), C(8fafab75661d602a), C(3cb36c3)},
00118     {C(4ec0b54cf1566aff), C(30d2c7269b206bf4), C(77c22e82295e1061),
00119      C(72c39bea)},
00120     {C(ed8b7a4b34954ff7), C(56432de31f4ee757), C(85bd3abaa572b155),
00121      C(a65aa25c)},
00122     {C(5d28b43694176c26), C(714cc8bc12d060ae), C(3437726273a83fe6),
00123      C(74740539)},
00124     {C(6a1ef3639e1d202e), C(919bc1bd145ad928), C(30f3f7e48c28a773),
00125      C(c3ae3c26)},
00126     {C(159f4d9e0307b111), C(3e17914a5675a0c), C(af849bd425047b51), C(f29db8a2)},
00127     {C(cc0a840725a7e25b), C(57c69454396e193a), C(976eaf7eee0b4540),
00128      C(1ef4cbf4)},
00129     {C(a2b27ee22f63c3f1), C(9ebde0ce1b3976b2), C(2fe6a92a257af308),
00130      C(a9be6c41)},
00131     {C(d8f2f234899bcab3), C(b10b037297c3a168), C(debea2c510ceda7f), C(fa31801)},
00132     {C(584f28543864844f), C(d7cee9fc2d46f20d), C(a38dca5657387205),
00133      C(8331c5d8)},
00134     {C(a94be46dd9aa41af), C(a57e5b7723d3f9bd), C(34bf845a52fd2f), C(e9876db8)},
00135     {C(9a87bea227491d20), C(a468657e2b9c43e7), C(af9ba60db8d89ef7),
00136      C(27b0604e)},
00137     {C(27688c24958d1a5c), C(e3b4a1c9429cf253), C(48a95811f70d64bc),
00138      C(dcec07f2)},
00139     {C(5d1d37790a1873ad), C(ed9cd4bcc5fa1090), C(ce51cde05d8cd96a),
00140      C(cff0a82a)},
00141     {C(1f03fd18b711eea9), C(566d89b1946d381a), C(6e96e83fc92563ab),
00142      C(fec83621)},
00143     {C(f0316f286cf527b6), C(f84c29538de1aa5a), C(7612ed3c923d4a71), C(743d8dc)},
00144     {C(297008bcb3e3401d), C(61a8e407f82b0c69), C(a4a35bff0524fa0e),
00145      C(64d41d26)},
00146     {C(43c6252411ee3be), C(b4ca1b8077777168), C(2746dc3f7da1737f), C(acd90c81)},
00147     {C(ce38a9a54fad6599), C(6d6f4a90b9e8755e), C(c3ecc79ff105de3f),
00148      C(7c746a4b)},
00149     {C(270a9305fef70cf), C(600193999d884f3a), C(f4d49eae09ed8a1), C(b1047e99)},
00150     {C(e71be7c28e84d119), C(eb6ace59932736e6), C(70c4397807ba12c5),
00151      C(d1fd1068)},
00152     {C(b5b58c24b53aaa19), C(d2a6ab0773dd897f), C(ef762fe01ecb5b97),
00153      C(56486077)},
00154     {C(44dd59bd301995cf), C(3ccabd76493ada1a), C(540db4c87d55ef23),
00155      C(6069be80)},
00156     {C(b4d4789eb6f2630b), C(bf6973263ce8ef0e), C(d1c75c50844b9d3), C(2078359b)},
00157     {C(12807833c463737c), C(58e927ea3b3776b4), C(72dd20ef1c2f8ad0),
00158      C(9ea21004)},
00159     {C(e88419922b87176f), C(bcf32f41a7ddbf6f), C(d6ebefd8085c1a0f),
00160      C(9c9cfe88)},
00161     {C(105191e0ec8f7f60), C(5918dbfcca971e79), C(6b285c8a944767b9),
00162      C(b70a6ddd)},
00163     {C(a5b88bf7399a9f07), C(fca3ddfd96461cc4), C(ebe738fdc0282fc6),
00164      C(dea37298)},
00165     {C(d08c3f5747d84f50), C(4e708b27d1b6f8ac), C(70f70fd734888606),
00166      C(8f480819)},
00167     {C(2f72d12a40044b4b), C(889689352fec53de), C(f03e6ad87eb2f36), C(30b3b16)},
00168     {C(aa1f61fdc5c2e11e), C(c2c56cd11277ab27), C(a1e73069fdf1f94f),
00169      C(f31bc4e8)},
00170     {C(9489b36fe2246244), C(3355367033be74b8), C(5f57c2277cbce516),
00171      C(419f953b)},
00172     {C(358d7c0476a044cd), C(e0b7b47bcbd8854f), C(ffb42ec696705519),
00173      C(20e9e76d)},
00174     {C(b0c48df14275265a), C(9da4448975905efa), C(d716618e414ceb6d),
00175      C(646f0ff8)},
00176     {C(daa70bb300956588), C(410ea6883a240c6d), C(f5c8239fb5673eb3),
00177      C(eeb7eca8)},
00178     {C(4ec97a20b6c4c7c2), C(5913b1cd454f29fd), C(a9629f9daf06d685), C(8112bb9)},
00179     {C(5c3323628435a2e8), C(1bea45ce9e72a6e3), C(904f0a7027ddb52e),
00180      C(85a6d477)},
00181     {C(c1ef26bea260abdb), C(6ee423f2137f9280), C(df2118b946ed0b43),
00182      C(56f76c84)},
00183     {C(6be7381b115d653a), C(ed046190758ea511), C(de6a45ffc3ed1159),
00184      C(9af45d55)},
00185     {C(ae3eece1711b2105), C(14fd3f4027f81a4a), C(abb7e45177d151db),
00186      C(d1c33760)},
00187     {C(376c28588b8fb389), C(6b045e84d8491ed2), C(4e857effb7d4e7dc),
00188      C(c56bbf69)},
00189     {C(58d943503bb6748f), C(419c6c8e88ac70f6), C(586760cbf3d3d368),
00190      C(abecfb9b)},
00191     {C(dfff5989f5cfd9a1), C(bcee2e7ea3a96f83), C(681c7874adb29017),
00192      C(8de13255)},
00193     {C(7fb19eb1a496e8f5), C(d49e5dfdb5c0833f), C(c0d5d7b2f7c48dc7),
00194      C(a98ee299)},
00195     {C(5dba5b0dadccdbaa), C(4ba8da8ded87fcdc), C(f693fdd25badf2f0),
00196      C(3015f556)},
00197     {C(688bef4b135a6829), C(8d31d82abcd54e8e), C(f95f8a30d55036d7),
00198      C(5a430e29)},
00199     {C(d8323be05433a412), C(8d48fa2b2b76141d), C(3d346f23978336a5),
00200      C(2797add0)},
00201     {C(3b5404278a55a7fc), C(23ca0b327c2d0a81), C(a6d65329571c892c),
00202      C(27d55016)},
00203     {C(2a96a3f96c5e9bbc), C(8caf8566e212dda8), C(904de559ca16e45e),
00204      C(84945a82)},
00205     {C(22bebfdcc26d18ff), C(4b4d8dcb10807ba1), C(40265eee30c6b896),
00206      C(3ef7e224)},
00207     {C(627a2249ec6bbcc2), C(c0578b462a46735a), C(4974b8ee1c2d4f1f),
00208      C(35ed8dc8)},
00209     {C(3abaf1667ba2f3e0), C(ee78476b5eeadc1), C(7e56ac0a6ca4f3f4), C(6a75e43d)},
00210     {C(3931ac68c5f1b2c9), C(efe3892363ab0fb0), C(40b707268337cd36),
00211      C(235d9805)},
00212     {C(b98fb0606f416754), C(46a6e5547ba99c1e), C(c909d82112a8ed2), C(f7d69572)},
00213     {C(7f7729a33e58fcc4), C(2e4bc1e7a023ead4), C(e707008ea7ca6222),
00214      C(bacd0199)},
00215     {C(42a0aa9ce82848b3), C(57232730e6bee175), C(f89bb3f370782031),
00216      C(e428f50e)},
00217     {C(6b2c6d38408a4889), C(de3ef6f68fb25885), C(20754f456c203361),
00218      C(81eaaad3)},
00219     {C(930380a3741e862a), C(348d28638dc71658), C(89dedcfd1654ea0d),
00220      C(addbd3e3)},
00221     {C(94808b5d2aa25f9a), C(cec72968128195e0), C(d9f4da2bdc1e130f),
00222      C(e66dbca0)},
00223     {C(b31abb08ae6e3d38), C(9eb9a95cbd9e8223), C(8019e79b7ee94ea9),
00224      C(afe11fd5)},
00225     {C(dccb5534a893ea1a), C(ce71c398708c6131), C(fe2396315457c164),
00226      C(a71a406f)},
00227     {C(6369163565814de6), C(8feb86fb38d08c2f), C(4976933485cc9a20),
00228      C(9d90eaf5)},
00229     {C(edee4ff253d9f9b3), C(96ef76fb279ef0ad), C(a4d204d179db2460),
00230      C(6665db10)},
00231     {C(941993df6e633214), C(929bc1beca5b72c6), C(141fc52b8d55572d),
00232      C(9c977cbf)},
00233     {C(859838293f64cd4c), C(484403b39d44ad79), C(bf674e64d64b9339),
00234      C(ee83ddd4)},
00235     {C(c19b5648e0d9f555), C(328e47b2b7562993), C(e756b92ba4bd6a51), C(26519cc)},
00236     {C(f963b63b9006c248), C(9e9bf727ffaa00bc), C(c73bacc75b917e3a),
00237      C(a485a53f)},
00238     {C(6a8aa0852a8c1f3b), C(c8f1e5e206a21016), C(2aa554aed1ebb524),
00239      C(f62bc412)},
00240     {C(740428b4d45e5fb8), C(4c95a4ce922cb0a5), C(e99c3ba78feae796),
00241      C(8975a436)},
00242     {C(658b883b3a872b86), C(2f0e303f0f64827a), C(975337e23dc45e1), C(94ff7f41)},
00243     {C(6df0a977da5d27d4), C(891dd0e7cb19508), C(fd65434a0b71e680), C(760aa031)},
00244     {C(a900275464ae07ef), C(11f2cfda34beb4a3), C(9abf91e5a1c38e4), C(3bda76df)},
00245     {C(810bc8aa0c40bcb0), C(448a019568d01441), C(f60ec52f60d3aeae),
00246      C(498e2e65)},
00247     {C(22036327deb59ed7), C(adc05ceb97026a02), C(48bff0654262672b),
00248      C(d38deb48)},
00249     {C(7d14dfa9772b00c8), C(595735efc7eeaed7), C(29872854f94c3507),
00250      C(82b3fb6b)},
00251     {C(2d777cddb912675d), C(278d7b10722a13f9), C(f5c02bfb7cc078af),
00252      C(e500e25f)},
00253     {C(f2ec98824e8aa613), C(5eb7e3fb53fe3bed), C(12c22860466e1dd4),
00254      C(bd2bb07c)},
00255     {C(5e763988e21f487f), C(24189de8065d8dc5), C(d1519d2403b62aa0),
00256      C(3a2b431d)},
00257     {C(48949dc327bb96ad), C(e1fd21636c5c50b4), C(3f6eb7f13a8712b4),
00258      C(7322a83d)},
00259     {C(b7c4209fb24a85c5), C(b35feb319c79ce10), C(f0d3de191833b922),
00260      C(a645ca1c)},
00261     {C(9c9e5be0943d4b05), C(b73dc69e45201cbb), C(aab17180bfe5083d),
00262      C(8909a45a)},
00263     {C(3898bca4dfd6638d), C(f911ff35efef0167), C(24bdf69e5091fc88),
00264      C(bd30074c)},
00265     {C(5b5d2557400e68e7), C(98d610033574cee), C(dfd08772ce385deb), C(c17cf001)},
00266     {C(a927ed8b2bf09bb6), C(606e52f10ae94eca), C(71c2203feb35a9ee),
00267      C(26ffd25a)},
00268     {C(8d25746414aedf28), C(34b1629d28b33d3a), C(4d5394aea5f82d7b),
00269      C(f1d8ce3c)},
00270     {C(b5bbdb73458712f2), C(1ff887b3c2a35137), C(7f7231f702d0ace9),
00271      C(3ee8fb17)},
00272     {C(3d32a26e3ab9d254), C(fc4070574dc30d3a), C(f02629579c2b27c9),
00273      C(a77acc2a)},
00274     {C(9371d3c35fa5e9a5), C(42967cf4d01f30), C(652d1eeae704145c), C(f4556dee)},
00275     {C(cbaa3cb8f64f54e0), C(76c3b48ee5c08417), C(9f7d24e87e61ce9), C(de287a64)},
00276     {C(b2e23e8116c2ba9f), C(7e4d9c0060101151), C(3310da5e5028f367),
00277      C(878e55b9)},
00278     {C(8aa77f52d7868eb9), C(4d55bd587584e6e2), C(d2db37041f495f5), C(7648486)},
00279     {C(858fea922c7fe0c3), C(cfe8326bf733bc6f), C(4e5e2018cf8f7dfc),
00280      C(57ac0fb1)},
00281     {C(46ef25fdec8392b1), C(e48d7b6d42a5cd35), C(56a6fe1c175299ca),
00282      C(d01967ca)},
00283     {C(8d078f726b2df464), C(b50ee71cdcabb299), C(f4af300106f9c7ba),
00284      C(96ecdf74)},
00285     {C(35ea86e6960ca950), C(34fe1fe234fc5c76), C(a00207a3dc2a72b7),
00286      C(779f5506)},
00287     {C(8aee9edbc15dd011), C(51f5839dc8462695), C(b2213e17c37dca2d),
00288      C(3c94c2de)},
00289     {C(c3e142ba98432dda), C(911d060cab126188), C(b753fbfa8365b844),
00290      C(39f98faf)},
00291     {C(123ba6b99c8cd8db), C(448e582672ee07c4), C(cebe379292db9e65),
00292      C(7af31199)},
00293     {C(ba87acef79d14f53), C(b3e0fcae63a11558), C(d5ac313a593a9f45),
00294      C(e341a9d6)},
00295     {C(bcd3957d5717dc3), C(2da746741b03a007), C(873816f4b1ece472), C(ca24aeeb)},
00296     {C(61442ff55609168e), C(6447c5fc76e8c9cf), C(6a846de83ae15728),
00297      C(b2252b57)},
00298     {C(dbe4b1b2d174757f), C(506512da18712656), C(6857f3e0b8dd95f), C(72c81da1)},
00299     {C(531e8e77b363161c), C(eece0b43e2dae030), C(8294b82c78f34ed1),
00300      C(6b9fce95)},
00301     {C(f71e9c926d711e2b), C(d77af2853a4ceaa1), C(9aa0d6d76a36fae7),
00302      C(19399857)},
00303     {C(cb20ac28f52df368), C(e6705ee7880996de), C(9b665cc3ec6972f2),
00304      C(3c57a994)},
00305     {C(e4a794b4acb94b55), C(89795358057b661b), C(9c4cdcec176d7a70),
00306      C(c053e729)},
00307     {C(cb942e91443e7208), C(e335de8125567c2a), C(d4d74d268b86df1f),
00308      C(51cbbba7)},
00309     {C(ecca7563c203f7ba), C(177ae2423ef34bb2), C(f60b7243400c5731),
00310      C(1acde79a)},
00311     {C(1652cb940177c8b5), C(8c4fe7d85d2a6d6d), C(f6216ad097e54e72),
00312      C(2d160d13)},
00313     {C(31fed0fc04c13ce8), C(3d5d03dbf7ff240a), C(727c5c9b51581203),
00314      C(787f5801)},
00315     {C(e7b668947590b9b3), C(baa41ad32938d3fa), C(abcbc8d4ca4b39e4),
00316      C(c9629828)},
00317     {C(1de2119923e8ef3c), C(6ab27c096cf2fe14), C(8c3658edca958891),
00318      C(be139231)},
00319     {C(1269df1e69e14fa7), C(992f9d58ac5041b7), C(e97fcf695a7cbbb4),
00320      C(7df699ef)},
00321     {C(820826d7aba567ff), C(1f73d28e036a52f3), C(41c4c5a73f3b0893),
00322      C(8ce6b96d)},
00323     {C(ffe0547e4923cef9), C(3534ed49b9da5b02), C(548a273700fba03d),
00324      C(6f9ed99c)},
00325     {C(72da8d1b11d8bc8b), C(ba94b56b91b681c6), C(4e8cc51bd9b0fc8c),
00326      C(e0244796)},
00327     {C(d62ab4e3f88fc797), C(ea86c7aeb6283ae4), C(b5b93e09a7fe465), C(4ccf7e75)},
00328     {C(d0f06c28c7b36823), C(1008cb0874de4bb8), C(d6c7ff816c7a737b),
00329      C(915cef86)},
00330     {C(99b7042460d72ec6), C(2a53e5e2b8e795c2), C(53a78132d9e1b3e3),
00331      C(5cb59482)},
00332     {C(4f4dfcfc0ec2bae5), C(841233148268a1b8), C(9248a76ab8be0d3), C(6ca3f532)},
00333     {C(fe86bf9d4422b9ae), C(ebce89c90641ef9c), C(1c84e2292c0b5659),
00334      C(e24f3859)},
00335     {C(a90d81060932dbb0), C(8acfaa88c5fbe92b), C(7c6f3447e90f7f3f),
00336      C(adf5a9c7)},
00337     {C(17938a1b0e7f5952), C(22cadd2f56f8a4be), C(84b0d1183d5ed7c1),
00338      C(32264b75)},
00339     {C(de9e0cb0e16f6e6d), C(238e6283aa4f6594), C(4fb9c914c2f0a13b),
00340      C(a64b3376)},
00341     {C(6d4b876d9b146d1a), C(aab2d64ce8f26739), C(d315f93600e83fe5), C(d33890e)},
00342     {C(e698fa3f54e6ea22), C(bd28e20e7455358c), C(9ace161f6ea76e66),
00343      C(926d4b63)},
00344     {C(7bc0deed4fb349f7), C(1771aff25dc722fa), C(19ff0644d9681917),
00345      C(d51ba539)},
00346     {C(db4b15e88533f622), C(256d6d2419b41ce9), C(9d7c5378396765d5),
00347      C(7f37636d)},
00348     {C(922834735e86ecb2), C(363382685b88328e), C(e9c92960d7144630),
00349      C(b98026c0)},
00350     {C(30f1d72c812f1eb8), C(b567cd4a69cd8989), C(820b6c992a51f0bc),
00351      C(b877767e)},
00352     {C(168884267f3817e9), C(5b376e050f637645), C(1c18314abd34497a), C(aefae77)},
00353     {C(82e78596ee3e56a7), C(25697d9c87f30d98), C(7600a8342834924d), C(f686911)},
00354     {C(aa2d6cf22e3cc252), C(9b4dec4f5e179f16), C(76fb0fba1d99a99a),
00355      C(3deadf12)},
00356     {C(7bf5ffd7f69385c7), C(fc077b1d8bc82879), C(9c04e36f9ed83a24),
00357      C(ccf02a4e)},
00358     {C(e89c8ff9f9c6e34b), C(f54c0f669a49f6c4), C(fc3e46f5d846adef),
00359      C(176c1722)},
00360     {C(a18fbcdccd11e1f4), C(8248216751dfd65e), C(40c089f208d89d7c), C(26f82ad)},
00361     {C(2d54f40cc4088b17), C(59d15633b0cd1399), C(a8cc04bb1bffd15b),
00362      C(b5244f42)},
00363     {C(69276946cb4e87c7), C(62bdbe6183be6fa9), C(3ba9773dac442a1a),
00364      C(49a689e5)},
00365     {C(668174a3f443df1d), C(407299392da1ce86), C(c2a3f7d7f2c5be28), C(59fcdd3)},
00366     {C(5e29be847bd5046), C(b561c7f19c8f80c3), C(5e5abd5021ccaeaf), C(4f4b04e9)},
00367     {C(cd0d79f2164da014), C(4c386bb5c5d6ca0c), C(8e771b03647c3b63),
00368      C(8b00f891)},
00369     {C(e0e6fc0b1628af1d), C(29be5fb4c27a2949), C(1c3f781a604d3630),
00370      C(16e114f3)},
00371     {C(2058927664adfd93), C(6e8f968c7963baa5), C(af3dced6fff7c394),
00372      C(d6b6dadc)},
00373     {C(dc107285fd8e1af7), C(a8641a0609321f3f), C(db06e89ffdc54466),
00374      C(897e20ac)},
00375     {C(fbba1afe2e3280f1), C(755a5f392f07fce), C(9e44a9a15402809a), C(f996e05d)},
00376     {C(bfa10785ddc1011b), C(b6e1c4d2f670f7de), C(517d95604e4fcc1f),
00377      C(c4306af6)},
00378     {C(534cc35f0ee1eb4e), C(b703820f1f3b3dce), C(884aa164cf22363), C(6dcad433)},
00379     {C(7ca6e3933995dac), C(fd118c77daa8188), C(3aceb7b5e7da6545), C(3c07374d)},
00380     {C(f0d6044f6efd7598), C(e044d6ba4369856e), C(91968e4f8c8a1a4c),
00381      C(f0f4602c)},
00382     {C(3d69e52049879d61), C(76610636ea9f74fe), C(e9bf5602f89310c0),
00383      C(3e1ea071)},
00384     {C(79da242a16acae31), C(183c5f438e29d40), C(6d351710ae92f3de), C(67580f0c)},
00385     {C(461c82656a74fb57), C(d84b491b275aa0f7), C(8f262cb29a6eb8b2),
00386      C(4e109454)},
00387     {C(53c1a66d0b13003), C(731f060e6fe797fc), C(daa56811791371e3), C(88a474a7)},
00388     {C(d3a2efec0f047e9), C(1cabce58853e58ea), C(7a17b2eae3256be4), C(5b5bedd)},
00389     {C(43c64d7484f7f9b2), C(5da002b64aafaeb7), C(b576c1e45800a716),
00390      C(1aaddfa7)},
00391     {C(a7dec6ad81cf7fa1), C(180c1ab708683063), C(95e0fd7008d67cff),
00392      C(5be07fd8)},
00393     {C(5408a1df99d4aff), C(b9565e588740f6bd), C(abf241813b08006e), C(cbca8606)},
00394     {C(a8b27a6bcaeeed4b), C(aec1eeded6a87e39), C(9daf246d6fed8326),
00395      C(bde64d01)},
00396     {C(9a952a8246fdc269), C(d0dcfcac74ef278c), C(250f7139836f0f1f),
00397      C(ee90cf33)},
00398     {C(c930841d1d88684f), C(5eb66eb18b7f9672), C(e455d413008a2546),
00399      C(4305c3ce)},
00400     {C(94dc6971e3cf071a), C(994c7003b73b2b34), C(ea16e85978694e5), C(4b3a1d76)},
00401     {C(7fc98006e25cac9), C(77fee0484cda86a7), C(376ec3d447060456), C(a8bb6d80)},
00402     {C(bd781c4454103f6), C(612197322f49c931), C(b9cf17fd7e5462d5), C(1f9fa607)},
00403     {C(da60e6b14479f9df), C(3bdccf69ece16792), C(18ebf45c4fecfdc9),
00404      C(8d0e4ed2)},
00405     {C(4ca56a348b6c4d3), C(60618537c3872514), C(2fbb9f0e65871b09), C(1bf31347)},
00406     {C(ebd22d4b70946401), C(6863602bf7139017), C(c0b1ac4e11b00666),
00407      C(1ae3fc5b)},
00408     {C(3cc4693d6cbcb0c), C(501689ea1c70ffa), C(10a4353e9c89e364), C(459c3930)},
00409     {C(38908e43f7ba5ef0), C(1ab035d4e7781e76), C(41d133e8c0a68ff7),
00410      C(e00c4184)},
00411     {C(34983ccc6aa40205), C(21802cad34e72bc4), C(1943e8fb3c17bb8), C(ffc7a781)},
00412     {C(86215c45dcac9905), C(ea546afe851cae4b), C(d85b6457e489e374),
00413      C(6a125480)},
00414     {C(420fc255c38db175), C(d503cd0f3c1208d1), C(d4684e74c825a0bc),
00415      C(88a1512b)},
00416     {C(1d7a31f5bc8fe2f9), C(4763991092dcf836), C(ed695f55b97416f4),
00417      C(549bbbe5)},
00418     {C(94129a84c376a26e), C(c245e859dc231933), C(1b8f74fecf917453),
00419      C(c133d38c)},
00420     {C(1d3a9809dab05c8d), C(adddeb4f71c93e8), C(ef342eb36631edb), C(fcace348)},
00421     {C(90fa3ccbd60848da), C(dfa6e0595b569e11), C(e585d067a1f5135d),
00422      C(ed7b6f9a)},
00423     {C(2dbb4fc71b554514), C(9650e04b86be0f82), C(60f2304fba9274d3),
00424      C(6d907dda)},
00425     {C(b98bf4274d18374a), C(1b669fd4c7f9a19a), C(b1f5972b88ba2b7a),
00426      C(7a4d48d5)},
00427     {C(d6781d0b5e18eb68), C(b992913cae09b533), C(58f6021caaee3a40),
00428      C(e686f3db)},
00429     {C(226651cf18f4884c), C(595052a874f0f51c), C(c9b75162b23bab42), C(cce7c55)},
00430     {C(a734fb047d3162d6), C(e523170d240ba3a5), C(125a6972809730e8), C(f58b96b)},
00431     {C(c6df6364a24f75a3), C(c294e2c84c4f5df8), C(a88df65c6a89313b),
00432      C(1bbf6f60)},
00433     {C(d8d1364c1fbcd10), C(2d7cc7f54832deaa), C(4e22c876a7c57625), C(ce5e0cc2)},
00434     {C(aae06f9146db885f), C(3598736441e280d9), C(fba339b117083e55),
00435      C(584cfd6f)},
00436     {C(8955ef07631e3bcc), C(7d70965ea3926f83), C(39aed4134f8b2db6),
00437      C(8f9bbc33)},
00438     {C(ad611c609cfbe412), C(d3c00b18bf253877), C(90b2172e1f3d0bfd),
00439      C(d7640d95)},
00440     {C(d5339adc295d5d69), C(b633cc1dcb8b586a), C(ee84184cf5b1aeaf), C(3d12a2b)},
00441     {C(40d0aeff521375a8), C(77ba1ad7ecebd506), C(547c6f1a7d9df427),
00442      C(aaeafed0)},
00443     {C(8b2d54ae1a3df769), C(11e7adaee3216679), C(3483781efc563e03),
00444      C(95b9b814)},
00445     {C(99c175819b4eae28), C(932e8ff9f7a40043), C(ec78dcab07ca9f7c),
00446      C(45fbe66e)},
00447     {C(2a418335779b82fc), C(af0295987849a76b), C(c12bc5ff0213f46e),
00448      C(b4baa7a8)},
00449     {C(3b1fc6a3d279e67d), C(70ea1e49c226396), C(25505adcf104697c), C(83e962fe)},
00450     {C(d97eacdf10f1c3c9), C(b54f4654043a36e0), C(b128f6eb09d1234), C(aac3531c)},
00451     {C(293a5c1c4e203cd4), C(6b3329f1c130cefe), C(f2e32f8ec76aac91),
00452      C(2b1db7cc)},
00453     {C(4290e018ffaedde7), C(a14948545418eb5e), C(72d851b202284636),
00454      C(cf00cd31)},
00455     {C(f919a59cbde8bf2f), C(a56d04203b2dc5a5), C(38b06753ac871e48),
00456      C(7d3c43b8)},
00457     {C(1d70a3f5521d7fa4), C(fb97b3fdc5891965), C(299d49bbbe3535af),
00458      C(cbd5fac6)},
00459     {C(6af98d7b656d0d7c), C(d2e99ae96d6b5c0c), C(f63bd1603ef80627),
00460      C(76d0fec4)},
00461     {C(395b7a8adb96ab75), C(582df7165b20f4a), C(e52bd30e9ff657f9), C(405e3402)},
00462     {C(3822dd82c7df012f), C(b9029b40bd9f122b), C(fd25b988468266c4),
00463      C(c732c481)},
00464     {C(79f7efe4a80b951a), C(dd3a3fddfc6c9c41), C(ab4c812f9e27aa40),
00465      C(a8d123c9)},
00466     {C(ae6e59f5f055921a), C(e9d9b7bf68e82), C(5ce4e4a5b269cc59), C(1e80ad7d)},
00467     {C(8959dbbf07387d36), C(b4658afce48ea35d), C(8f3f82437d8cb8d6),
00468      C(52aeb863)},
00469     {C(4739613234278a49), C(99ea5bcd340bf663), C(258640912e712b12),
00470      C(ef7c0c18)},
00471     {C(420e6c926bc54841), C(96dbbf6f4e7c75cd), C(d8d40fa70c3c67bb),
00472      C(b6ad4b68)},
00473     {C(c8601bab561bc1b7), C(72b26272a0ff869a), C(56fdfc986d6bc3c4),
00474      C(c1e46b17)},
00475     {C(b2d294931a0e20eb), C(284ffd9a0815bc38), C(1f8a103aac9bbe6), C(57b8df25)},
00476     {C(7966f53c37b6c6d7), C(8e6abcfb3aa2b88f), C(7f2e5e0724e5f345),
00477      C(e9fa36d6)},
00478     {C(be9bb0abd03b7368), C(13bca93a3031be55), C(e864f4f52b55b472),
00479      C(8f8daefc)},
00480     {C(a08d128c5f1649be), C(a8166c3dbbe19aad), C(cb9f914f829ec62c), C(6e1bb7e)},
00481     {C(7c386f0ffe0465ac), C(530419c9d843dbf3), C(7450e3a4f72b8d8c),
00482      C(fd0076f0)},
00483     {C(bb362094e7ef4f8), C(ff3c2a48966f9725), C(55152803acd4a7fe), C(899b17b6)},
00484     {C(cd80dea24321eea4), C(52b4fdc8130c2b15), C(f3ea100b154bfb82),
00485      C(e3e84e31)},
00486     {C(d599a04125372c3a), C(313136c56a56f363), C(1e993c3677625832),
00487      C(eef79b6b)},
00488     {C(dbbf541e9dfda0a), C(1479fceb6db4f844), C(31ab576b59062534), C(868e3315)},
00489     {C(c2ee3288be4fe2bf), C(c65d2f5ddf32b92), C(af6ecdf121ba5485), C(4639a426)},
00490     {C(d86603ced1ed4730), C(f9de718aaada7709), C(db8b9755194c6535),
00491      C(f3213646)},
00492     {C(915263c671b28809), C(a815378e7ad762fd), C(abec6dc9b669f559),
00493      C(17f148e9)},
00494     {C(2b67cdd38c307a5e), C(cb1d45bb5c9fe1c), C(800baf2a02ec18ad), C(bfd94880)},
00495     {C(2d107419073b9cd0), C(a96db0740cef8f54), C(ec41ee91b3ecdc1b),
00496      C(bb1fa7f3)},
00497     {C(f3e9487ec0e26dfc), C(1ab1f63224e837fa), C(119983bb5a8125d8), C(88816b1)},
00498     {C(1160987c8fe86f7d), C(879e6db1481eb91b), C(d7dcb802bfe6885d),
00499      C(5c2faeb3)},
00500     {C(eab8112c560b967b), C(97f550b58e89dbae), C(846ed506d304051f),
00501      C(51b5fc6f)},
00502     {C(1addcf0386d35351), C(b5f436561f8f1484), C(85d38e22181c9bb1),
00503      C(33d94752)},
00504     {C(d445ba84bf803e09), C(1216c2497038f804), C(2293216ea2237207),
00505      C(b0c92948)},
00506     {C(37235a096a8be435), C(d9b73130493589c2), C(3b1024f59378d3be),
00507      C(c7171590)},
00508     {C(763ad6ea2fe1c99d), C(cf7af5368ac1e26b), C(4d5e451b3bb8d3d4),
00509      C(240a67fb)},
00510     {C(ea627fc84cd1b857), C(85e372494520071f), C(69ec61800845780b),
00511      C(e1843cd5)},
00512     {C(1f2ffd79f2cdc0c8), C(726a1bc31b337aaa), C(678b7f275ef96434),
00513      C(fda1452b)},
00514     {C(39a9e146ec4b3210), C(f63f75802a78b1ac), C(e2e22539c94741c3),
00515      C(a2cad330)},
00516     {C(74cba303e2dd9d6d), C(692699b83289fad1), C(dfb9aa7874678480),
00517      C(53467e16)},
00518     {C(4cbc2b73a43071e0), C(56c5db4c4ca4e0b7), C(1b275a162f46bd3d),
00519      C(da14a8d0)},
00520     {C(875638b9715d2221), C(d9ba0615c0c58740), C(616d4be2dfe825aa),
00521      C(67333551)},
00522     {C(fb686b2782994a8d), C(edee60693756bb48), C(e6bc3cae0ded2ef5),
00523      C(a0ebd66e)},
00524     {C(ab21d81a911e6723), C(4c31b07354852f59), C(835da384c9384744),
00525      C(4b769593)},
00526     {C(33d013cc0cd46ecf), C(3de726423aea122c), C(116af51117fe21a9),
00527      C(6aa75624)},
00528     {C(8ca92c7cd39fae5d), C(317e620e1bf20f1), C(4f0b33bf2194b97f), C(602a3f96)},
00529     {C(fdde3b03f018f43e), C(38f932946c78660), C(c84084ce946851ee), C(cd183c4d)},
00530     {C(9c8502050e9c9458), C(d6d2a1a69964beb9), C(1675766f480229b5),
00531      C(960a4d07)},
00532     {C(348176ca2fa2fdd2), C(3a89c514cc360c2d), C(9f90b8afb318d6d0),
00533      C(9ae998c4)},
00534     {C(4a3d3dfbbaea130b), C(4e221c920f61ed01), C(553fd6cd1304531f),
00535      C(74e2179d)},
00536     {C(b371f768cdf4edb9), C(bdef2ace6d2de0f0), C(e05b4100f7f1baec),
00537      C(ee9bae25)},
00538     {C(7a1d2e96934f61f), C(eb1760ae6af7d961), C(887eb0da063005df), C(b66edf10)},
00539     {C(8be53d466d4728f2), C(86a5ac8e0d416640), C(984aa464cdb5c8bb),
00540      C(d6209737)},
00541     {C(829677eb03abf042), C(43cad004b6bc2c0), C(f2f224756803971a), C(b994a88)},
00542     {C(754435bae3496fc), C(5707fc006f094dcf), C(8951c86ab19d8e40), C(a05d43c0)},
00543     {C(fda9877ea8e3805f), C(31e868b6ffd521b7), C(b08c90681fb6a0fd),
00544      C(c79f73a8)},
00545     {C(2e36f523ca8f5eb5), C(8b22932f89b27513), C(331cd6ecbfadc1bb),
00546      C(a490aff5)},
00547     {C(21a378ef76828208), C(a5c13037fa841da2), C(506d22a53fbe9812),
00548      C(dfad65b4)},
00549     {C(ccdd5600054b16ca), C(f78846e84204cb7b), C(1f9faec82c24eac9), C(1d07dfb)},
00550     {C(7854468f4e0cabd0), C(3a3f6b4f098d0692), C(ae2423ec7799d30d),
00551      C(416df9a0)},
00552     {C(7f88db5346d8f997), C(88eac9aacc653798), C(68a4d0295f8eefa1),
00553      C(1f8fb9cc)},
00554     {C(bb3fb5fb01d60fcf), C(1b7cc0847a215eb6), C(1246c994437990a1),
00555      C(7abf48e3)},
00556     {C(2e783e1761acd84d), C(39158042bac975a0), C(1cd21c5a8071188d),
00557      C(dea4e3dd)},
00558     {C(392058251cf22acc), C(944ec4475ead4620), C(b330a10b5cb94166),
00559      C(c6064f22)},
00560     {C(adf5c1e5d6419947), C(2a9747bc659d28aa), C(95c5b8cb1f5d62c), C(743bed9c)},
00561     {C(6bc1db2c2bee5aba), C(e63b0ed635307398), C(7b2eca111f30dbbc),
00562      C(fce254d5)},
00563     {C(b00f898229efa508), C(83b7590ad7f6985c), C(2780e70a0592e41d),
00564      C(e47ec9d1)},
00565     {C(b56eb769ce0d9a8c), C(ce196117bfbcaf04), C(b26c3c3797d66165),
00566      C(334a145c)},
00567     {C(70c0637675b94150), C(259e1669305b0a15), C(46e1dd9fd387a58d),
00568      C(adec1e3c)},
00569     {C(74c0b8a6821faafe), C(abac39d7491370e7), C(faf0b2a48a4e6aed),
00570      C(f6a9fbf8)},
00571     {C(5fb5e48ac7b7fa4f), C(a96170f08f5acbc7), C(bbf5c63d4f52a1e5),
00572      C(5398210c)},
00573 };
00574 
00575 void TestUnchanging(const uint64_t* expected, int offset, int len) {
00576   EXPECT_EQ(expected[0], CityHash64(data + offset, len));
00577   EXPECT_EQ(expected[3], CityHash32(data + offset, len));
00578   EXPECT_EQ(expected[1], CityHash64WithSeed(data + offset, len, kSeed0));
00579   EXPECT_EQ(expected[2],
00580             CityHash64WithSeeds(data + offset, len, kSeed0, kSeed1));
00581 }
00582 
00583 TEST(CityHashTest, Unchanging) {
00584   setup();
00585   int i = 0;
00586   for (; i < kTestSize - 1; i++) {
00587     TestUnchanging(testdata[i], i * i, i);
00588   }
00589   TestUnchanging(testdata[i], 0, kDataSize);
00590 }
00591 
00592 }  // namespace hash_internal
00593 }  // namespace absl


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:14