MCPcopy Create free account
hub / github.com/WheretIB/nullc / insert

Method insert

NULLC/HashMap.h:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void insert(unsigned int hash, Value value)
53 {
54 unsigned int bucket = hash & bucketMask;
55 Node *n = (Node*)nodePool.Allocate(sizeof(Node));
56 n->value = value;
57 n->hash = hash;
58 n->next = entries[bucket];
59 entries[bucket] = n;
60 }
61 void remove(unsigned int hash, Value value)
62 {
63 unsigned int bucket = hash & bucketMask;

Callers 15

AddFunctionToSortedListFunction · 0.80
EndBlockFunction · 0.80
AddVariableFunction · 0.80
GetCurrentArgumentTypeFunction · 0.80
FunctionParameterFunction · 0.80
FunctionParameterDefaultFunction · 0.80
FunctionPrototypeFunction · 0.80
FunctionStartFunction · 0.80
GetGenericFunctionRatingFunction · 0.80
TypeBeginFunction · 0.80
TypeContinueFunction · 0.80

Calls 1

AllocateMethod · 0.45

Tested by

no test coverage detected