diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-12 20:22:11 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-12 20:22:11 +0100 |
| commit | 5e77b994435be4bef66ff596bf931e1fff97a77c (patch) | |
| tree | 3095688b2163b07057a948e859a0d2dff44511e6 /src/internals.h | |
| parent | Add simple benchmarker (diff) | |
| download | libzahl-5e77b994435be4bef66ff596bf931e1fff97a77c.tar.gz libzahl-5e77b994435be4bef66ff596bf931e1fff97a77c.tar.bz2 libzahl-5e77b994435be4bef66ff596bf931e1fff97a77c.tar.xz | |
64-bit chars out-perform 32-bit chars on almost all operations, and on all expensive operations
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/internals.h')
| -rw-r--r-- | src/internals.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/internals.h b/src/internals.h index 8a9c379..b4e6039 100644 --- a/src/internals.h +++ b/src/internals.h @@ -5,9 +5,9 @@ #include <stdlib.h> #include <errno.h> -#define BITS_PER_CHAR 32 -#define LB_BITS_PER_CHAR 5 -#define ZAHL_CHAR_MAX UINT32_MAX +#define BITS_PER_CHAR 64 +#define LB_BITS_PER_CHAR 6 +#define ZAHL_CHAR_MAX UINT64_MAX #define FLOOR_BITS_TO_CHARS(bits) ((bits) >> LB_BITS_PER_CHAR) #define CEILING_BITS_TO_CHARS(bits) (((bits) + (BITS_PER_CHAR - 1)) >> LB_BITS_PER_CHAR) |
