MCPcopy Create free account
hub / github.com/SoarGroup/Soar / find_float_constant

Function find_float_constant

Core/SoarKernel/src/symtab.cpp:309–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309Symbol* find_float_constant(agent* thisAgent, double value)
310{
311 uint32_t hash_value;
312 floatSymbol* sym;
313
314 hash_value = hash_float_constant_raw_info(value,
315 thisAgent->float_constant_hash_table->log2size);
316 sym = reinterpret_cast<floatSymbol*>(*(thisAgent->float_constant_hash_table->buckets + hash_value));
317 for (; sym != NIL; sym = floatSym(sym->next_in_hash_table))
318 {
319 if (value == sym->value)
320 {
321 return sym;
322 }
323 }
324 return NIL;
325}
326
327Symbol* make_variable(agent* thisAgent, const char* name)
328{

Callers 4

read_pattern_componentFunction · 0.85
smem_parse_removeFunction · 0.85
make_float_constantFunction · 0.85

Calls 2

floatSymFunction · 0.85

Tested by

no test coverage detected