]> wimlib.net Git - wimlib/blobdiff - include/wimlib/lz_hash.h
Stop force-inlining everything marked 'inline'
[wimlib] / include / wimlib / lz_hash.h
index 464c01af2c29e9a84a57a8b97195854417572a22..f7618152b9b02377936b37d3280bb49f83ecabe8 100644 (file)
@@ -1,13 +1,21 @@
 /*
- * lz_hash.h
+ * lz_hash.h - hashing for Lempel-Ziv matchfinding
  *
- * Hashing for Lempel-Ziv matchfinding.
+ * The following copying information applies to this specific source code file:
  *
- * Author:     Eric Biggers
- * Year:       2014, 2015
+ * Written in 2014-2015 by Eric Biggers <ebiggers3@gmail.com>
  *
- * The author dedicates this file to the public domain.
- * You can do whatever you want with this file.
+ * To the extent possible under law, the author(s) have dedicated all copyright
+ * and related and neighboring rights to this software to the public domain
+ * worldwide via the Creative Commons Zero 1.0 Universal Public Domain
+ * Dedication (the "CC0").
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the CC0 for more details.
+ *
+ * You should have received a copy of the CC0 along with this software; if not
+ * see <http://creativecommons.org/publicdomain/zero/1.0/>.
  */
 
 #ifndef _LZ_HASH_H
@@ -22,7 +30,7 @@
  * next-highest @num_bits bits of the product as the hash value, as those have
  * the most randomness.
  */
-static inline u32
+static forceinline u32
 lz_hash(u32 seq, unsigned num_bits)
 {
        return (u32)(seq * 0x1E35A7BD) >> (32 - num_bits);