idf.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. /* IDENTIFIER FIDDLING & SYMBOL TABLE HANDLING */
  7. #include "lint.h"
  8. #include <em_reg.h>
  9. #include "nofloat.h"
  10. #include "debug.h"
  11. #include "idfsize.h"
  12. #include "botch_free.h"
  13. #include "nopp.h"
  14. #include <alloc.h>
  15. #include "arith.h"
  16. #include "align.h"
  17. #include "LLlex.h"
  18. #include "level.h"
  19. #include "stack.h"
  20. #include "idf.h"
  21. #include "label.h"
  22. #include "def.h"
  23. #include "type.h"
  24. #include "struct.h"
  25. #include "declar.h"
  26. #include "decspecs.h"
  27. #include "sizes.h"
  28. #include "Lpars.h"
  29. #include "assert.h"
  30. #include "specials.h" /* registration of special identifiers */
  31. #include "noRoption.h"
  32. int idfsize = IDFSIZE;
  33. extern char options[];
  34. extern arith NewLocal();
  35. char sp_occurred[SP_TOTAL+1]; /* indicate occurrence of special id */
  36. struct idf *idf_hashtable[HASHSIZE];
  37. /* All identifiers can in principle be reached through
  38. idf_hashtable; idf_hashtable[hc] is the start of a chain of
  39. idf's whose tags all hash to hc. Each idf is the start of
  40. a chain of def's for that idf, sorted according to level,
  41. with the most recent one on top.
  42. Any identifier occurring on a level is entered into this
  43. list, regardless of the nature of its declaration
  44. (variable, selector, structure tag, etc.).
  45. */
  46. struct idf *
  47. idf_hashed(tg, size, hc)
  48. char *tg;
  49. int size; /* includes the '\0' character */
  50. int hc;
  51. {
  52. /* The tag tg with length size and known hash value hc is
  53. looked up in the identifier table; if not found, it is
  54. entered. A pointer to it is returned.
  55. The identifier has already been truncated to idfsize
  56. characters.
  57. */
  58. register struct idf **hook = &idf_hashtable[hc], *notch;
  59. while ((notch = *hook)) {
  60. register char *s1 = tg;
  61. register char *cp = notch->id_text;
  62. register int cmp;
  63. while (!(cmp = (*s1 - *cp++))) {
  64. if (*s1++ == '\0') {
  65. break;
  66. }
  67. }
  68. if (cmp < 0)
  69. break;
  70. if (cmp == 0) {
  71. /* suppose that special identifiers, as
  72. "setjmp", are already inserted
  73. */
  74. sp_occurred[notch->id_special] = 1;
  75. return notch;
  76. }
  77. hook = &notch->next;
  78. }
  79. /* a new struct idf must be inserted at the hook */
  80. notch = new_idf();
  81. notch->next = *hook;
  82. *hook = notch; /* hooked in */
  83. notch->id_text = Salloc(tg, (unsigned) size);
  84. #ifndef NOPP
  85. notch->id_resmac = 0;
  86. #endif /* NOPP */
  87. return notch;
  88. }
  89. #ifdef DEBUG
  90. hash_stat()
  91. {
  92. if (options['h']) {
  93. register int i;
  94. print("Hash table tally:\n");
  95. for (i = 0; i < HASHSIZE; i++) {
  96. register struct idf *notch = idf_hashtable[i];
  97. int cnt = 0;
  98. while (notch) {
  99. cnt++;
  100. notch = notch->next;
  101. }
  102. print("%d %d\n", i, cnt);
  103. }
  104. print("End hash table tally\n");
  105. }
  106. }
  107. #endif /* DEBUG */
  108. struct idf *
  109. str2idf(tg)
  110. char tg[];
  111. {
  112. /* str2idf() returns an entry in the symbol table for the
  113. identifier tg. If necessary, an entry is created.
  114. It is used where the text of the identifier is available
  115. but its hash value is not; otherwise idf_hashed() is to
  116. be used.
  117. */
  118. register char *cp = tg;
  119. register int hash;
  120. register int pos = -1;
  121. register int ch;
  122. char ntg[IDFSIZE + 1];
  123. register char *ncp = ntg;
  124. hash = STARTHASH();
  125. while (++pos < idfsize && (ch = *cp++)) {
  126. *ncp++ = ch;
  127. hash = ENHASH(hash, ch, pos);
  128. }
  129. hash = STOPHASH(hash);
  130. *ncp++ = '\0';
  131. return idf_hashed(ntg, ncp - ntg, hash);
  132. }
  133. struct idf *
  134. gen_idf()
  135. {
  136. /* A new idf is created out of nowhere, to serve as an
  137. anonymous name.
  138. */
  139. static int name_cnt;
  140. struct idf *id;
  141. char *s = Malloc(strlen(dot.tk_file)+50);
  142. sprint(s, "#%d in %s, line %u",
  143. ++name_cnt, dot.tk_file, dot.tk_line);
  144. id = str2idf(s);
  145. free(s);
  146. return id;
  147. }
  148. int
  149. is_anon_idf(idf)
  150. struct idf *idf;
  151. {
  152. return idf->id_text[0] == '#';
  153. }
  154. declare_idf(ds, dc, lvl)
  155. struct decspecs *ds;
  156. struct declarator *dc;
  157. {
  158. /* The identifier inside dc is declared on the level lvl, with
  159. properties deduced from the decspecs ds and the declarator
  160. dc.
  161. The level is given explicitly to be able to insert, e.g.,
  162. labels on the outermost level inside the function.
  163. This routine implements the rich semantics of C
  164. declarations.
  165. */
  166. register struct idf *idf = dc->dc_idf;
  167. register int sc = ds->ds_sc;
  168. /* This local copy is essential:
  169. char b(), c;
  170. makes b GLOBAL and c AUTO.
  171. */
  172. register struct def *def = idf->id_def; /* may be NULL */
  173. register struct type *type;
  174. struct stack_level *stl = stack_level_of(lvl);
  175. char formal_array = 0;
  176. /* determine the present type */
  177. if (ds->ds_type == 0) {
  178. /* at the L_FORMAL1 level there is no type specified yet
  179. */
  180. ASSERT(lvl == L_FORMAL1);
  181. type = int_type; /* may change at L_FORMAL2 */
  182. }
  183. else {
  184. /* combine the decspecs and the declarator into one type */
  185. type = declare_type(ds->ds_type, dc);
  186. if (type->tp_size <= (arith)0 &&
  187. actual_declaration(sc, type)) {
  188. if (type->tp_size == (arith) -1) {
  189. /* the type is not yet known,
  190. but it has to be:
  191. */
  192. extern char *symbol2str();
  193. error("unknown %s-type",
  194. symbol2str(type->tp_fund));
  195. }
  196. else if (type->tp_fund != LABEL) {
  197. /* CJ */
  198. warning("%s has size 0", idf->id_text);
  199. }
  200. }
  201. }
  202. /* some additional work for formal definitions */
  203. if (lvl == L_FORMAL2) {
  204. switch (type->tp_fund) {
  205. case FUNCTION:
  206. warning("%s is a function; cannot be formal",
  207. idf->id_text);
  208. type = construct_type(POINTER, type, (arith)0);
  209. break;
  210. case ARRAY: /* RM 10.1 */
  211. type = construct_type(POINTER, type->tp_up, (arith)0);
  212. formal_array = 1;
  213. break;
  214. #ifndef NOFLOAT
  215. case FLOAT: /* RM 10.1 */
  216. type = double_type;
  217. break;
  218. #endif /* NOFLOAT */
  219. case CHAR:
  220. case SHORT:
  221. /* The RM is not clear about this: we must
  222. convert the parameter from int (they have
  223. been pushed as ints) to the specified type.
  224. The conversion to type int or uint is not
  225. allowed.
  226. */
  227. break;
  228. }
  229. }
  230. /* The tests on types, postponed from do_decspecs(), can now
  231. be performed.
  232. */
  233. /* update the storage class */
  234. if (type && type->tp_fund == FUNCTION) {
  235. if (sc == 0 || (ds->ds_sc_given && sc == AUTO)) /* RM 8.1 */
  236. sc = GLOBAL;
  237. else
  238. if (sc == REGISTER) {
  239. error("function storage class cannot be register");
  240. ds->ds_sc = sc = GLOBAL;
  241. }
  242. }
  243. else /* non-FUNCTION */
  244. if (sc == 0)
  245. sc = lvl == L_GLOBAL ? GLOBAL
  246. : lvl == L_FORMAL1 || lvl == L_FORMAL2 ? FORMAL
  247. : AUTO;
  248. #ifndef NOROPTION
  249. if (options['R']) { /* some special K & R tests */
  250. /* is it also an enum? */
  251. if (idf->id_enum && idf->id_enum->tg_level == level)
  252. warning("%s is also an enum tag", idf->id_text);
  253. /* is it a universal typedef? */
  254. if (def && def->df_level == L_UNIVERSAL)
  255. warning("redeclaring reserved word %s", idf->id_text);
  256. }
  257. #endif
  258. #ifdef LINT
  259. check_hiding(idf, lvl, sc); /* of some idf by this idf */
  260. #endif /* LINT */
  261. if (def &&
  262. ( def->df_level == lvl ||
  263. ( lvl != L_GLOBAL && def->df_level > lvl )
  264. )
  265. ) {
  266. /* There is already a declaration for idf on this
  267. level, or even more inside.
  268. The rules differ for different levels.
  269. */
  270. switch (lvl) {
  271. case L_GLOBAL:
  272. global_redecl(idf, sc, type);
  273. def->df_file = idf->id_file;
  274. def->df_line = idf->id_line;
  275. break;
  276. case L_FORMAL1: /* formal declaration */
  277. error("formal %s redeclared", idf->id_text);
  278. break;
  279. case L_FORMAL2: /* formal definition */
  280. default: /* local */
  281. error("%s redeclared", idf->id_text);
  282. break;
  283. }
  284. }
  285. else /* the idf is unknown on this level */
  286. if (lvl == L_FORMAL2 && sc != ENUM && good_formal(def, idf)) {
  287. /* formal declaration, update only */
  288. def->df_type = type;
  289. def->df_formal_array = formal_array;
  290. def->df_sc = sc;
  291. def->df_level = L_FORMAL2; /* CJ */
  292. def->df_file = idf->id_file;
  293. def->df_line = idf->id_line;
  294. }
  295. else
  296. if ( lvl >= L_LOCAL &&
  297. (type->tp_fund == FUNCTION || sc == EXTERN)
  298. ) {
  299. /* extern declaration inside function is treated the
  300. same way as global extern declaration
  301. */
  302. #ifndef NOROPTION
  303. if ( options['R'] &&
  304. (sc == STATIC && type->tp_fund == FUNCTION)
  305. )
  306. if (!is_anon_idf(idf))
  307. warning("non-global static function %s",
  308. idf->id_text);
  309. #endif
  310. declare_idf(ds, dc, L_GLOBAL);
  311. }
  312. else { /* fill in the def block */
  313. register struct def *newdef = new_def();
  314. newdef->next = def;
  315. newdef->df_level = lvl;
  316. newdef->df_type = type;
  317. newdef->df_sc = sc;
  318. newdef->df_file = idf->id_file;
  319. newdef->df_line = idf->id_line;
  320. #ifdef LINT
  321. newdef->df_set = 0;
  322. newdef->df_firstbrace = 0;
  323. #endif /* LINT */
  324. /* link it into the name list in the proper place */
  325. idf->id_def = newdef;
  326. update_ahead(idf);
  327. stack_idf(idf, stl);
  328. /* We now calculate the address.
  329. Globals have names and don't get addresses, they
  330. get numbers instead (through data_label()).
  331. Formals are handled by declare_formals().
  332. So here we hand out local addresses only.
  333. */
  334. if (lvl >= L_LOCAL) {
  335. ASSERT(sc);
  336. switch (sc) {
  337. case REGISTER:
  338. case AUTO:
  339. if (type->tp_size == (arith)-1) {
  340. error("size of local %s unknown",
  341. idf->id_text);
  342. /** type = idf->id_def->df_type = int_type; **/
  343. }
  344. newdef->df_address =
  345. NewLocal(type->tp_size,
  346. type->tp_align,
  347. regtype(type),
  348. sc);
  349. break;
  350. case STATIC:
  351. newdef->df_address = (arith) data_label();
  352. break;
  353. }
  354. }
  355. }
  356. }
  357. actual_declaration(sc, tp)
  358. int sc;
  359. struct type *tp;
  360. {
  361. /* An actual_declaration needs space, right here and now.
  362. */
  363. register int fund = tp->tp_fund;
  364. if (sc == ENUM || sc == TYPEDEF) /* virtual declarations */
  365. return 0;
  366. if (fund == FUNCTION || fund == ARRAY)
  367. /* allocation solved in other ways */
  368. return 0;
  369. /* to be allocated */
  370. return 1;
  371. }
  372. global_redecl(idf, new_sc, tp)
  373. register struct idf *idf;
  374. register struct type *tp;
  375. {
  376. /* A global identifier may be declared several times,
  377. provided the declarations do not conflict; they might
  378. conflict in type (or supplement each other in the case of
  379. an array) or they might conflict or supplement each other
  380. in storage class.
  381. */
  382. register struct def *def = idf->id_def;
  383. if (tp != def->df_type) {
  384. register struct type *otp = def->df_type;
  385. if ( tp->tp_fund != ARRAY || otp->tp_fund != ARRAY ||
  386. tp->tp_up != otp->tp_up
  387. ) {
  388. error("redeclaration of %s with different type",
  389. idf->id_text);
  390. return;
  391. }
  392. /* Multiple array declaration; this may be interesting */
  393. if (tp->tp_size < 0) { /* new decl has [] */
  394. /* nothing new */
  395. }
  396. else
  397. if (otp->tp_size < 0) { /* old decl has [] */
  398. def->df_type = tp;
  399. }
  400. else
  401. if (tp->tp_size != otp->tp_size)
  402. error("inconsistent size in redeclaration of array %s",
  403. idf->id_text);
  404. }
  405. /* Now we may be able to update the storage class.
  406. Clean out this mess as soon as we know all the possibilities
  407. for new_sc.
  408. For now we have:
  409. EXTERN: we have seen the word "extern"
  410. GLOBAL: the item was declared on the outer
  411. level, without either "extern" or
  412. "static".
  413. STATIC: we have seen the word "static"
  414. IMPLICIT: function declaration inferred from
  415. call
  416. */
  417. if (new_sc == IMPLICIT)
  418. return; /* no new information */
  419. switch (def->df_sc) { /* the old storage class */
  420. case EXTERN:
  421. switch (new_sc) { /* the new storage class */
  422. case EXTERN:
  423. case GLOBAL:
  424. break;
  425. case STATIC:
  426. if (def->df_initialized) {
  427. error("cannot redeclare %s to static",
  428. idf->id_text);
  429. }
  430. else {
  431. warning("%s redeclared to static",
  432. idf->id_text);
  433. }
  434. def->df_sc = new_sc;
  435. break;
  436. default:
  437. crash("bad storage class");
  438. /*NOTREACHED*/
  439. }
  440. break;
  441. case GLOBAL:
  442. switch (new_sc) { /* the new storage class */
  443. case EXTERN:
  444. def->df_sc = EXTERN;
  445. break;
  446. case GLOBAL:
  447. break;
  448. case STATIC:
  449. if (def->df_initialized)
  450. error("cannot redeclare %s to static",
  451. idf->id_text);
  452. else {
  453. #ifdef LINT
  454. /* warn unconditionally */
  455. warning("%s redeclared to static",
  456. idf->id_text);
  457. #else /* LINT */
  458. #ifndef NOROPTION
  459. /* warn conditionally */
  460. if (options['R'])
  461. warning("%s redeclared to static",
  462. idf->id_text);
  463. #endif /* NOROPTION */
  464. #endif /* LINT */
  465. def->df_sc = STATIC;
  466. }
  467. break;
  468. default:
  469. crash("bad storage class");
  470. /*NOTREACHED*/
  471. }
  472. break;
  473. case STATIC:
  474. switch (new_sc) { /* the new storage class */
  475. case EXTERN:
  476. if (def->df_initialized)
  477. error("cannot redeclare %s to extern",
  478. idf->id_text);
  479. else {
  480. warning("%s redeclared to extern",
  481. idf->id_text);
  482. def->df_sc = EXTERN;
  483. }
  484. break;
  485. case GLOBAL:
  486. case STATIC:
  487. if (def->df_type->tp_fund != FUNCTION)
  488. warning("%s was already static",
  489. idf->id_text);
  490. break;
  491. default:
  492. crash("bad storage class");
  493. /*NOTREACHED*/
  494. }
  495. break;
  496. case IMPLICIT:
  497. switch (new_sc) { /* the new storage class */
  498. case EXTERN:
  499. case GLOBAL:
  500. def->df_sc = new_sc;
  501. break;
  502. case STATIC:
  503. #ifndef NOROPTION
  504. if (options['R'])
  505. warning("%s was implicitly declared as extern",
  506. idf->id_text);
  507. #endif
  508. def->df_sc = new_sc;
  509. break;
  510. default:
  511. crash("bad storage class");
  512. /*NOTREACHED*/
  513. }
  514. break;
  515. case ENUM:
  516. case TYPEDEF:
  517. error("illegal redeclaration of %s", idf->id_text);
  518. break;
  519. default:
  520. crash("bad storage class");
  521. /*NOTREACHED*/
  522. }
  523. }
  524. int
  525. good_formal(def, idf)
  526. register struct def *def;
  527. register struct idf *idf;
  528. {
  529. /* Succeeds if def is a proper L_FORMAL1 definition and
  530. gives an error message otherwise.
  531. */
  532. if (!def || def->df_level != L_FORMAL1) { /* not in parameter list */
  533. if (!is_anon_idf(idf))
  534. error("%s not in parameter list", idf->id_text);
  535. return 0;
  536. }
  537. ASSERT(def->df_sc == FORMAL); /* CJ */
  538. return 1;
  539. }
  540. declare_params(dc)
  541. register struct declarator *dc;
  542. {
  543. /* Declares the formal parameters if they exist.
  544. */
  545. register struct formal *fm = dc->dc_formal;
  546. while (fm) {
  547. declare_parameter(fm->fm_idf);
  548. fm = fm->next;
  549. }
  550. free_formals(dc->dc_formal);
  551. dc->dc_formal = 0;
  552. }
  553. init_idf(idf)
  554. register struct idf *idf;
  555. {
  556. /* The topmost definition of idf is set to initialized.
  557. */
  558. register struct def *def = idf->id_def; /* the topmost */
  559. if (def->df_initialized)
  560. error("multiple initialization of %s", idf->id_text);
  561. if (def->df_sc == TYPEDEF) {
  562. warning("typedef cannot be initialized");
  563. def->df_sc = EXTERN; /* ??? *//* What else ? */
  564. }
  565. def->df_initialized = 1;
  566. }
  567. declare_parameter(idf)
  568. struct idf *idf;
  569. {
  570. /* idf is declared as a formal.
  571. */
  572. add_def(idf, FORMAL, int_type, level);
  573. }
  574. declare_enum(tp, idf, l)
  575. struct type *tp;
  576. struct idf *idf;
  577. arith l;
  578. {
  579. /* idf is declared as an enum constant with value l.
  580. */
  581. add_def(idf, ENUM, tp, level);
  582. idf->id_def->df_address = l;
  583. }
  584. declare_formals(fp)
  585. arith *fp;
  586. {
  587. /* Declares those formals as int that haven't been declared
  588. by the user.
  589. An address is assigned to each formal parameter.
  590. The total size of the formals is returned in *fp;
  591. */
  592. register struct stack_entry *se = stack_level_of(L_FORMAL1)->sl_entry;
  593. arith f_offset = (arith)0;
  594. #ifdef DEBUG
  595. if (options['t'])
  596. dumpidftab("start declare_formals", 0);
  597. #endif /* DEBUG */
  598. while (se) {
  599. register struct def *def = se->se_idf->id_def;
  600. def->df_address = f_offset;
  601. /* the alignment convention for parameters is: align on
  602. word boundaries, i.e. take care that the following
  603. parameter starts on a new word boundary.
  604. */
  605. f_offset = align(f_offset + def->df_type->tp_size, (int) word_size);
  606. formal_cvt(def); /* cvt int to char or short, if necessary */
  607. def->df_level = L_FORMAL2; /* CJ */
  608. RegisterAccount(def->df_address, def->df_type->tp_size,
  609. regtype(def->df_type),
  610. def->df_sc);
  611. #ifdef DBSYMTAB
  612. if (options['g']) {
  613. stb_string(def, FORMAL, se->se_idf->id_text);
  614. }
  615. #endif /* DBSYMTAB */
  616. se = se->next;
  617. }
  618. *fp = f_offset;
  619. }
  620. int
  621. regtype(tp)
  622. struct type *tp;
  623. {
  624. switch(tp->tp_fund) {
  625. case INT:
  626. case LONG:
  627. return reg_any;
  628. #ifndef NOFLOAT
  629. case FLOAT:
  630. case DOUBLE:
  631. return reg_float;
  632. #endif /* NOFLOAT */
  633. case POINTER:
  634. return reg_pointer;
  635. }
  636. return -1;
  637. }
  638. add_def(idf, sc, tp, lvl)
  639. struct idf *idf;
  640. struct type *tp;
  641. int lvl;
  642. int sc;
  643. {
  644. /* The identifier idf is declared on level lvl with storage
  645. class sc and type tp, through a faked C declaration.
  646. This is probably the wrong way to structure the problem,
  647. but it will have to do for the time being.
  648. */
  649. struct decspecs Ds; struct declarator Dc;
  650. Ds = null_decspecs;
  651. Ds.ds_type = tp;
  652. Ds.ds_sc = sc;
  653. Dc = null_declarator;
  654. Dc.dc_idf = idf;
  655. declare_idf(&Ds, &Dc, lvl);
  656. }
  657. update_ahead(idf)
  658. register struct idf *idf;
  659. {
  660. /* The tk_symb of the token ahead is updated in the light of new
  661. information about the identifier idf.
  662. */
  663. register int tk_symb = AHEAD;
  664. if ( (tk_symb == IDENTIFIER || tk_symb == TYPE_IDENTIFIER) &&
  665. ahead.tk_idf == idf
  666. )
  667. AHEAD = idf->id_def && idf->id_def->df_sc == TYPEDEF ?
  668. TYPE_IDENTIFIER : IDENTIFIER;
  669. }
  670. free_formals(fm)
  671. register struct formal *fm;
  672. {
  673. while (fm) {
  674. struct formal *tmp = fm->next;
  675. free_formal(fm);
  676. fm = tmp;
  677. }
  678. }
  679. char hmask[IDFSIZE];
  680. init_hmask()
  681. {
  682. /* A simple congruence random number generator, as
  683. described in Knuth, vol 2.
  684. */
  685. register int h, rnd = HASH_X;
  686. for (h = 0; h < IDFSIZE; h++) {
  687. hmask[h] = rnd;
  688. rnd = (HASH_A * rnd + HASH_C) & HASHMASK;
  689. }
  690. }