|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
#include "serene/rt/engine.h"Go to the source code of this file.
Functions | |
| 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. | |
| 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. | |
| 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.