|
15 | 15 | /**begin repeat |
16 | 16 | * #sfx = u8, s8, u16, s16, u32, s32, u64, s64, f32, f64# |
17 | 17 | * #bsfx = b8, b8, b16, b16, b32, b32, b64, b64, b32, b64# |
18 | | - * #esfx = u16, s8, u32,s16, u32, s32, u64, s64, f32, f64# |
| 18 | + * #esfx = u16,s8, u32, s16, u32, s32, u64, s64, f32, f64# |
| 19 | + * #size = 8, 8, 16, 16, 32, 32, 64, 64, 32, 64# |
19 | 20 | * #expand_sup= 1, 0, 1, 0, 0, 0, 0, 0, 0, 0# |
20 | 21 | * #simd_sup = 1, 1, 1, 1, 1, 1, 1, 1, 1, NPY_SIMD_F64# |
21 | 22 | * #fp_only = 0, 0, 0, 0, 0, 0, 0, 0, 1, 1# |
@@ -232,6 +233,15 @@ err: |
232 | 233 | /**end repeat1**/ |
233 | 234 | #endif // @ncont_sup@ |
234 | 235 |
|
| 236 | +/**************************** |
| 237 | + * Lookup tables |
| 238 | + ****************************/ |
| 239 | +#if @size@ == 32 |
| 240 | +SIMD_IMPL_INTRIN_2(lut32_@sfx@, v@sfx@, q@sfx@, vu@size@) |
| 241 | +#endif |
| 242 | +#if @size@ == 64 |
| 243 | +SIMD_IMPL_INTRIN_2(lut16_@sfx@, v@sfx@, q@sfx@, vu@size@) |
| 244 | +#endif |
235 | 245 | /*************************** |
236 | 246 | * Misc |
237 | 247 | ***************************/ |
@@ -470,8 +480,9 @@ static PyMethodDef simd__intrinsics_methods[] = { |
470 | 480 | /**begin repeat |
471 | 481 | * #sfx = u8, s8, u16, s16, u32, s32, u64, s64, f32, f64# |
472 | 482 | * #bsfx = b8, b8, b16, b16, b32, b32, b64, b64, b32, b64# |
473 | | - * #esfx = u16, s8, u32,s16, u32, s32, u64, s64, f32, f64# |
474 | | - * #expand_sup =1, 0, 1, 0, 0, 0, 0, 0, 0, 0# |
| 483 | + * #esfx = u16,s8, u32, s16, u32, s32, u64, s64, f32, f64# |
| 484 | + * #size = 8, 8, 16, 16, 32, 32, 64, 64, 32, 64# |
| 485 | + * #expand_sup= 1, 0, 1, 0, 0, 0, 0, 0, 0, 0# |
475 | 486 | * #simd_sup = 1, 1, 1, 1, 1, 1, 1, 1, 1, NPY_SIMD_F64# |
476 | 487 | * #fp_only = 0, 0, 0, 0, 0, 0, 0, 0, 1, 1# |
477 | 488 | * #sat_sup = 1, 1, 1, 1, 0, 0, 0, 0, 0, 0# |
@@ -509,6 +520,15 @@ SIMD_INTRIN_DEF(@intrin@_@sfx@) |
509 | 520 | /**end repeat1**/ |
510 | 521 | #endif // ncont_sup |
511 | 522 |
|
| 523 | +/**************************** |
| 524 | + * Lookup tables |
| 525 | + ****************************/ |
| 526 | +#if @size@ == 32 |
| 527 | +SIMD_INTRIN_DEF(lut32_@sfx@) |
| 528 | +#endif |
| 529 | +#if @size@ == 64 |
| 530 | +SIMD_INTRIN_DEF(lut16_@sfx@) |
| 531 | +#endif |
512 | 532 | /*************************** |
513 | 533 | * Misc |
514 | 534 | ***************************/ |
|
0 commit comments