|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
#include "serene/rt/protocols.h"#include "serene/rt/context.h"#include "serene/rt/core.h"#include "serene/rt/engine.h"#include "serene/rt/impl/seq.h"#include "serene/rt/keywords.h"#include "serene/rt/lists.h"#include "serene/rt/maps.h"#include "serene/rt/namespaces.h"#include "serene/rt/seqs.h"#include "serene/rt/strings.h"#include "serene/rt/symbols.h"#include "serene/utils.h"#include <string.h>Go to the source code of this file.
Functions | |
| static srn_value_t * | equality_to_value (bool cond) |
| srn_value_t * | srn_value_eq (srn_context_t *ctx, const srn_value_t *a, const srn_value_t *b) |
| Check to values for equality. Return a boolean. | |
| static srn_hash_t | combine2 (srn_engine_t *engine, srn_hash_t a, srn_hash_t b) |
| srn_hash_t | srn_value_hash (srn_context_t *ctx, const srn_value_t *v) |
| Compute the xxHash32 of a value using the engine seed. | |
|
inlinestatic |
Definition at line 133 of file protocols.c.
|
inlinestatic |
| srn_value_t * srn_value_eq | ( | srn_context_t * | ctx, |
| const srn_value_t * | a, | ||
| const srn_value_t * | b ) |
Check to values for equality. Return a boolean.
Definition at line 38 of file protocols.c.
| srn_hash_t srn_value_hash | ( | srn_context_t * | ctx, |
| const srn_value_t * | v ) |
Compute the xxHash32 of a value using the engine seed.
The invariant srn_value_eq(a, b) == true_v => srn_value_hash(a) == srn_value_hash(b) must hold for every tag.
Definition at line 138 of file protocols.c.