dlang_hll_create

Creates HLL instance. The structure constructor can be used instead.

extern (C) @system nothrow @nogc pragma(inline, false)
int
dlang_hll_create
(
ref HLL hll
,
uint p = 18
,
uint pPrime = 25
,
HLL_Malloc malloc = &core.stdc.stdlib.malloc
,
HLL_Realloc realloc = &core.stdc.stdlib.realloc
,
HLL_Free free = &core.stdc.stdlib.free
)

Parameters

hll HLL

hll reference

p uint

precision, p ∈ [4..min(pPrime, 18)]"

pPrime uint

precision for sparse representation, pPrime ∈ [4..63]

malloc HLL_Malloc

memory allocation function

realloc HLL_Realloc

memory reallocation function

free HLL_Free

memory free function

Return Value

Type: int

0 on success and a positive value if parameters are wrong.

Meta