Commit 8bcd2387 authored by Stefan Behnel's avatar Stefan Behnel

Sprinkle "unlikely()" branch hints in all places where the memory view C code raises exceptions.

parent cc400539
...@@ -517,7 +517,7 @@ static CYTHON_INLINE void __Pyx_XDEC_MEMVIEW({{memviewslice_name}} *memslice, ...@@ -517,7 +517,7 @@ static CYTHON_INLINE void __Pyx_XDEC_MEMVIEW({{memviewslice_name}} *memslice,
return; return;
} }
if (__pyx_get_slice_count(memview) <= 0) if (unlikely(__pyx_get_slice_count(memview) <= 0))
__pyx_fatalerror("Acquisition count is %d (line %d)", __pyx_fatalerror("Acquisition count is %d (line %d)",
__pyx_get_slice_count(memview), lineno); __pyx_get_slice_count(memview), lineno);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment