• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revision3933 (tree)
Time2018-12-09 00:25:56
Authormagicant

Log Message

Use the correct 128-bit FNV prime

Change Summary

Incremental Difference

--- yash/trunk/hashtable.h (revision 3932)
+++ yash/trunk/hashtable.h (revision 3933)
@@ -1,6 +1,6 @@
11 /* Yash: yet another shell */
22 /* hashtable.h: hashtable library */
3-/* (C) 2007-2010 magicant */
3+/* (C) 2007-2018 magicant */
44
55 /* This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@
2828 # define FNVPRIME 1099511628211
2929 #elif defined UINT128_MAX && UINT128_MAX == UINT_FAST32_MAX
3030 typedef uint128_t hashval_T;
31-# define FNVPRIME 309485009821345068724781401
31+# define FNVPRIME 309485009821345068724781371
3232 #else
3333 typedef uint32_t hashval_T;
3434 # define FNVPRIME 16777619
Show on old repository browser