| 307 | } |
| 308 | |
| 309 | Symbol* 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 | |
| 327 | Symbol* make_variable(agent* thisAgent, const char* name) |
| 328 | { |
no test coverage detected