MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / exchangehashpart

Function exchangehashpart

xrepo/packages/l/lua/port/lua/src/ltable.c:525–535  ·  view source on GitHub ↗

** Exchange the hash part of 't1' and 't2'. */

Source from the content-addressed store, hash-verified

523** Exchange the hash part of 't1' and 't2'.
524*/
525static void exchangehashpart (Table *t1, Table *t2) {
526 lu_byte lsizenode = t1->lsizenode;
527 Node *node = t1->node;
528 Node *lastfree = t1->lastfree;
529 t1->lsizenode = t2->lsizenode;
530 t1->node = t2->node;
531 t1->lastfree = t2->lastfree;
532 t2->lsizenode = lsizenode;
533 t2->node = node;
534 t2->lastfree = lastfree;
535}
536
537
538/*

Callers 1

luaH_resizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected