File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ CFLAGS = $(OPTFLAGS) $(WARNFLAGS)
3939# Use the Random123 library
4040CPPFLAGS = -DUSE_RANDOM123 -IRandom123-1.09/include
4141
42+ # # Use lookup table for pow()
43+ # CPPFLAGS += -DUSE_POW_LOOKUP
44+
4245# Using the uthash hash table
4346# See https://troydhanson.github.io/uthash/userguide.html
4447# and https://github.com/troydhanson/uthash
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ extern "C" {
9494/* Integer power y of double x, may be faster than pow(x, y). x set in
9595 init_powtable(). Note CANNOT compile with -ffast-math on gcc as we
9696 depend on IEEE handling of NaN in changeStatisticsDirected.c */
97- #define POWTABLE_SIZE 1000 /* number of entries in POW_TABLE */
97+ #define POWTABLE_SIZE 10000 /* number of entries in POW_TABLE */
9898#define POW_LOOKUP (x , y ) ((y) < POWTABLE_SIZE ? POWTABLE[(y)] : pow((x), (y)))
9999#else
100100#define POW_LOOKUP (x , y ) (pow((x), (y)))
You can’t perform that action at this time.
0 commit comments