diff options
author | alon@honor <none@none> | 2010-10-09 19:21:35 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-09 19:21:35 -0700 |
commit | 9f7d7f67ed96a9a5972f68df1767deaf802db683 (patch) | |
tree | 0e0248cdbf88e2b462bb6d2cea9da4bfc4ec54eb /src/utility.js | |
parent | 1f86652596288066bb27b83fb9b8e70a871ff16d (diff) |
optimize away 1's and 0's in getelementptr; 1% speedup
Diffstat (limited to 'src/utility.js')
-rw-r--r-- | src/utility.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js index d5583ffb..2cc2408c 100644 --- a/src/utility.js +++ b/src/utility.js @@ -213,3 +213,7 @@ function setIntersect(x, y) { return ret; } +function isNumber(x) { + return x == parseInt(x); +} + |