NUMPY_API * Multiply a List */
| 180 | * Multiply a List |
| 181 | */ |
| 182 | NPY_NO_EXPORT npy_intp |
| 183 | PyArray_MultiplyList(npy_intp const *l1, int n) |
| 184 | { |
| 185 | npy_intp s = 1; |
| 186 | |
| 187 | while (n--) { |
| 188 | s *= (*l1++); |
| 189 | } |
| 190 | return s; |
| 191 | } |
| 192 | |
| 193 | /*NUMPY_API |
| 194 | * Multiply a List of Non-negative numbers with over-flow detection. |
no outgoing calls
no test coverage detected