Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/ntirpc/misc/citycrc.h
$ cat -n /usr/include/ntirpc/misc/citycrc.h 1 /* citycrc.h - cityhash-c 2 * CityHash on C 3 * Copyright (c) 2011-2012, Alexander Nusov 4 * 5 * - original copyright notice - 6 * Copyright (c) 2011 Google, Inc. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy 9 * of this software and associated documentation files (the "Software"), to deal 10 * in the Software without restriction, including without limitation the rights 11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 * copies of the Software, and to permit persons to whom the Software is 13 * furnished to do so, subject to the following conditions: 14 * 15 * The above copyright notice and this permission notice shall be included in 16 * all copies or substantial portions of the Software. 17 * 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 * THE SOFTWARE. 25 * 26 * CityHash, by Geoff Pike and Jyrki Alakuijala 27 * 28 * This file declares the subset of the CityHash functions that require 29 * _mm_crc32_u64(). See the CityHash README for details. 30 * 31 * Functions in the CityHash family are not suitable for cryptography. 32 */ 33 34 #ifndef CITY_HASH_CRC_H_ 35 #define CITY_HASH_CRC_H_ 36 37 #include
38 39 /* Hash function for a byte array. */ 40 uint128 CityHashCrc128(const char *s, size_t len); 41 42 /* Hash function for a byte array. For convenience, a 128-bit seed is also 43 * hashed into the result. */ 44 uint128 CityHashCrc128WithSeed(const char *s, size_t len, uint128 seed); 45 46 /* Hash function for a byte array. Sets result[0] ... result[3]. */ 47 void CityHashCrc256(const char *s, size_t len, uint64 *result); 48 49 #endif /* CITY_HASH_CRC_H_ */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™