aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index 79b4e6fa..0bc6c88d 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -43,6 +43,11 @@ CHECK_OVERFLOWS = 0; // Add code that checks for overflows in integer math opera
// some factor, in order to get 'random' hash values - by taking
// that |value & hash_table_size| - then multiplying enough times will overflow.
// But instead, you can do |value = value & 30_BITS| in each iteration.
+CORRECT_OVERFLOWS = 1; // Experimental code that tries to prevent unexpected JS overflows in integer
+ // mathops, by doing controlled overflows (sort of parallel to a CPU).
+ // Note that as mentioned above in CHECK_OVERFLOWS, the best thing is to
+ // not rely on overflows in your C/C++ code, as even if this option works,
+ // it slows things down.
// Compiler debugging options
DEBUG_TAGS_SHOWING = [];