Browse Source

update token hash params

Quentin Carbonneaux 3 years ago
parent
commit
2fd3a95d6f
2 changed files with 3 additions and 2 deletions
  1. 1 1
      parse.c
  2. 2 1
      tools/lexh.c

+ 1 - 1
parse.c

@@ -109,7 +109,7 @@ enum {
 	TMask = 16383, /* for temps hash */
 	BMask = 8191, /* for blocks hash */
 
-	K = 4331239, /* found using tools/lexh.c */
+	K = 5041217, /* found using tools/lexh.c */
 	M = 23,
 };
 

+ 2 - 1
tools/lexh.c

@@ -14,7 +14,8 @@ char *tok[] = {
 	"load", "loadsw", "loaduw", "loadsh", "loaduh",
 	"loadsb", "loadub", "extsw", "extuw", "extsh",
 	"extuh", "extsb", "extub", "exts", "truncd",
-	"stosi", "dtosi", "swtof", "sltof", "cast", "copy",
+	"stosi", "dtosi", "stoui", "dtoui", "uwtof",
+	"ultof", "swtof", "sltof", "cast", "copy",
 	"alloc4", "alloc8", "alloc16", "culew", "cultw",
 	"cslew", "csltw", "csgtw", "csgew", "cugtw",
 	"cugew", "ceqw", "cnew", "culel", "cultl", "cslel",