diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-20 13:36:00 -0800 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-23 15:47:10 -0800 |
commit | a5712c7d52b4708b7f7b32c71ffc062425c0d7be (patch) | |
tree | a116ea9ef86017d1a15768b82dc3791390cad5b1 /generated_tests | |
parent | b1bce973f9034c812b147bbd1e8db2728153ea06 (diff) |
gen_cl_int_builtins.py: Replace use of Long type
Python3 doesn't have long types (ints will now grow until you run out of
memory). Use bit shifting instead.
This produces the same output before and after
Thanks to Jason Ekstrand for help with this.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'generated_tests')
-rw-r--r-- | generated_tests/gen_cl_int_builtins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generated_tests/gen_cl_int_builtins.py b/generated_tests/gen_cl_int_builtins.py index 2e10f92d3..15ce3087a 100644 --- a/generated_tests/gen_cl_int_builtins.py +++ b/generated_tests/gen_cl_int_builtins.py @@ -114,7 +114,7 @@ def pow(val, pow): def rotate_right(x, n, bits): # Find all bits that will wrap - mask = (2L**n) - 1 + mask = (1 << n) - 1 wrapped_bits = x & mask # sign extension needs to be masked out |