From 92d9b6e12353e5840a49f94b3c8f99ae9f2a72a0 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 18 Nov 2015 15:02:12 +0100 Subject: [PATCH 1/2] Complete removal of wraparound flag The "wraparound" flag to the jit() decorator was removed some time ago, but traces of it were left especially in the docstring. --- numba/decorators.py | 5 ----- numba/targets/options.py | 3 --- 2 files changed, 8 deletions(-) diff --git a/numba/decorators.py b/numba/decorators.py index baab3a0013e..130db251429 100644 --- a/numba/decorators.py +++ b/numba/decorators.py @@ -74,11 +74,6 @@ def jit(signature_or_function=None, locals={}, target='cpu', cache=False, **opti mode. Any arrays that the tight loop uses should be created before the loop is entered. Default value is True. - wraparound: bool - Set to True to enable array indexing wraparound for negative - indices, for a small performance penalty. Default value - is True. - Returns -------- A callable usable as a compiled function. Actual compiling will be diff --git a/numba/targets/options.py b/numba/targets/options.py index 1db8c88bc4f..fd33c36ab05 100644 --- a/numba/targets/options.py +++ b/numba/targets/options.py @@ -43,9 +43,6 @@ def set_flags(self, flags): if kws.pop('looplift', True): flags.set("enable_looplift") - if kws.pop('wraparound', True) == False: - flags.set("no_wraparound") - if kws.pop('boundcheck', False): flags.set("boundcheck") From 65480cc611125aabc1369a21c444db94bf5275fe Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 18 Nov 2015 16:22:09 +0100 Subject: [PATCH 2/2] Also remove wraparound in target options dict --- numba/targets/cpu.py | 1 - 1 file changed, 1 deletion(-) diff --git a/numba/targets/cpu.py b/numba/targets/cpu.py index f20ddfe19ca..0529ed5bb65 100644 --- a/numba/targets/cpu.py +++ b/numba/targets/cpu.py @@ -173,7 +173,6 @@ class CPUTargetOptions(TargetOptions): "nogil": bool, "forceobj": bool, "looplift": bool, - "wraparound": bool, "boundcheck": bool, "_nrt": bool, "no_rewrites": bool,