diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-04-30 22:51:50 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-04-30 22:51:50 +0200 |
| commit | 2bb92620ce92f60a0c8b275159c9057c88d48765 (patch) | |
| tree | 90dd66e5f0570cef53cd624ae945b3b1392a3ecf /zahl-internals.h | |
| parent | Use ZAHL_INLINE instead of static inline (diff) | |
| download | libzahl-2bb92620ce92f60a0c8b275159c9057c88d48765.tar.gz libzahl-2bb92620ce92f60a0c8b275159c9057c88d48765.tar.bz2 libzahl-2bb92620ce92f60a0c8b275159c9057c88d48765.tar.xz | |
Some things to keep in mind when optimising
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'zahl-internals.h')
| -rw-r--r-- | zahl-internals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zahl-internals.h b/zahl-internals.h index afdf416..2024919 100644 --- a/zahl-internals.h +++ b/zahl-internals.h @@ -44,11 +44,15 @@ # define ZAHL_Os /* Don't know how. */ # define ZAHL_Oz /* Don't know how. */ #endif +/* Mostly ZAHL_O2, but sometimes ZAHL_O3, are useful. + * But note, often it optimal to not use any of them. */ #define ZAHL_BITS_PER_CHAR 64 #define ZAHL_LB_BITS_PER_CHAR 6 #define ZAHL_CHAR_MAX UINT64_MAX +/* Note: These, cannot be changed willy-nilly, some code depends + * on them, be cause being flexible would just be too painful. */ #define ZAHL_FLOOR_BITS_TO_CHARS(bits) ((bits) >> ZAHL_LB_BITS_PER_CHAR) |
