emeryberger/Hoard

Compiling : what c2s() in geometricsizeclass ?

mprevot opened this issue · 1 comments

It seems that c2s() is bool c2s(int), but I could not see any definition anywhere in Hoard. I'm compiling in Visual Studio 2019 Hoard as a c++ (or c) project.

assert (c2s(left) >= sz);

What does c2s() do ? Which one should I use ?

It's defined in src/include/hoard/geometricsizeclass.h:

/// Quickly compute the maximum size for a given size class.

static unsigned long c2s (int cl) {