use NPY_INLINE
add extra parentheses to conditionals