| 1363 | #define M_LOG10_EF 0.434294481903251827651128918916605082294397f |
| 1364 | |
| 1365 | static void |
| 1366 | nc_log10( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r) |
| 1367 | { |
| 1368 | if( sb1 == sizeof(npy_complex64) ) { // Aligned |
| 1369 | for( npy_intp I = 0; I < n; I++ ) { |
| 1370 | _inline_log( x[I], r[I] ); |
| 1371 | r[I].real *= M_LOG10_EF; |
| 1372 | r[I].imag *= M_LOG10_EF; |
| 1373 | } |
| 1374 | } |
| 1375 | else { |
| 1376 | sb1 /= sizeof(npy_complex64); |
| 1377 | for( npy_intp I = 0; I < n; I++ ) { |
| 1378 | _inline_log( x[I*sb1], r[I] ); |
| 1379 | r[I].real *= M_LOG10_EF; |
| 1380 | r[I].imag *= M_LOG10_EF; |
| 1381 | } |
| 1382 | } |
| 1383 | } |
| 1384 | |
| 1385 | static void |
| 1386 | nc_log10( npy_intp n, npy_complex128 *x, npy_intp sb1, npy_complex128 *r) |
nothing calls this directly
no test coverage detected
searching dependent graphs…