Cyclone Scheme  0.28.0
Functions
ck-polyfill.c File Reference
#include "cyclone/types.h"
#include "cyclone/runtime.h"
#include "ck-polyfill.h"
#include <unistd.h>

Functions

bool ck_array_commit (ck_array_t *array)
 
bool ck_array_init (ck_array_t *array, unsigned int mode, struct ck_malloc *allocator, unsigned int initial_length)
 
int ck_array_put_unique (ck_array_t *array, void *pointer)
 
bool ck_array_remove (ck_array_t *array, void *pointer)
 
void * ck_hs_get (ck_hs_t *_hs, unsigned long hash, const void *key)
 
bool ck_hs_init (ck_hs_t *hs, unsigned int mode, ck_hs_hash_cb_t *hash_func, ck_hs_compare_cb_t *cmp, struct ck_malloc *alloc, unsigned long capacity, unsigned long seed)
 
bool ck_hs_put (ck_hs_t *_hs, unsigned long hash, const void *key)
 
void ck_polyfill_init ()
 
void ck_pr_add_8 (uint8_t *target, uint8_t delta)
 
void ck_pr_add_int (int *target, int delta)
 
void ck_pr_add_ptr (void *target, uintptr_t delta)
 
bool ck_pr_cas_8 (uint8_t *target, uint8_t old_value, uint8_t new_value)
 
bool ck_pr_cas_int (int *target, int old_value, int new_value)
 
bool ck_pr_cas_ptr (void *target, void *old_value, void *new_value)
 
uint8_t ck_pr_load_8 (const uint8_t *target)
 
int ck_pr_load_int (const int *target)
 
void * ck_pr_load_ptr (const void *target)
 
void ck_pr_store_ptr (void *target, void *value)
 
size_t hash_function (const char *p, size_t len)
 
int simple_hashset_add (simple_hashset_t set, symbol_type *key)
 
simple_hashset_t simple_hashset_create ()
 
void simple_hashset_destroy (simple_hashset_t set)
 
int simple_hashset_is_member (simple_hashset_t set, symbol_type *key)
 
void simple_hashset_set_hash_function (simple_hashset_t set, hash_func_t func)