Changeset: 70a7395fe4ed for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=70a7395fe4ed Modified Files: gdk/gdk_hash.h Branch: default Log Message:
Add comments about which values produce NIL as hash value. diffs (29 lines): diff --git a/gdk/gdk_hash.h b/gdk/gdk_hash.h --- a/gdk/gdk_hash.h +++ b/gdk/gdk_hash.h @@ -128,12 +128,16 @@ gdk_export BUN HASHlist(Hash *h, BUN i); } while (0) #endif +/* mix_bte(0x80) == 0x80 */ #define mix_bte(X) ((unsigned int) (unsigned char) (X)) +/* mix_sht(0x8000) == 0x8000 */ #define mix_sht(X) ((unsigned int) (unsigned short) (X)) +/* mix_int(0x81060038) == 0x80000000 */ #define mix_int(X) (((unsigned int) (X) >> 7) ^ \ ((unsigned int) (X) >> 13) ^ \ ((unsigned int) (X) >> 21) ^ \ (unsigned int) (X)) +/* mix_lng(0x810600394347424F) == 0x8000000000000000 */ #define mix_lng(X) (((ulng) (X) >> 7) ^ \ ((ulng) (X) >> 13) ^ \ ((ulng) (X) >> 21) ^ \ @@ -143,6 +147,8 @@ gdk_export BUN HASHlist(Hash *h, BUN i); ((ulng) (X) >> 56) ^ \ (ulng) (X)) #ifdef HAVE_HGE +/* mix_hge(0x810600394347424F90AC1429D6BFCC57) == + * 0x80000000000000000000000000000000 */ #define mix_hge(X) (((uhge) (X) >> 7) ^ \ ((uhge) (X) >> 13) ^ \ ((uhge) (X) >> 21) ^ \ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list