LSL-PyOptimizer/lslopt
Sei Lisa 3a849fe4b9 Optimize a common condition of (x & flag1) && (x & flag2)
It can't be done always: flag1 and flag2 must be nonzero powers of two. In that case, we can transform it to:

!~(x|~(flag1|flag2)) = !~(x|constant)

The -2147483648 case has trouble with the sign hack detector and I couldn't trigger it.
2017-10-13 02:59:32 +02:00
..
__init__.py Initial commit. Status so far: 2014-07-26 02:43:44 +02:00
lslbasefuncs.py Change strategy for the checking of function input types. 2017-10-12 17:16:16 +02:00
lslcommon.py Separate library function optimization into a different file. 2017-08-25 20:35:24 +02:00
lsldeadcode.py Bump copyright year. 2017-08-09 19:45:46 +02:00
lslextrafuncs.py Change strategy for the checking of function input types. 2017-10-12 17:16:16 +02:00
lslfoldconst.py Optimize a common condition of (x & flag1) && (x & flag2) 2017-10-13 02:59:32 +02:00
lslfuncopt.py Minor cleanups; no functional changes. 2017-09-22 15:42:42 +02:00
lslfuncs.py Bump copyright year. 2017-08-09 19:45:46 +02:00
lsljson.py Change strategy for the checking of function input types. 2017-10-12 17:16:16 +02:00
lsllastpass.py Minor cleanups; no functional changes. 2017-09-22 15:42:42 +02:00
lsloptimizer.py Implement transformation of lists into additions. 2017-09-15 22:30:22 +02:00
lsloutput.py Format LIST nodes; don't add indent to CONST list in calc mode 2017-08-25 20:35:24 +02:00
lslparse.py Add some more functions with predictable results. 2017-10-12 12:43:54 +02:00
lslrenamer.py Add TODO item to lslrenamer. 2017-08-16 22:00:16 +02:00