Commit a7ca029
committed
fix(simd): Phase 2 — preserve lowercase aliases under nightly-simd + rustfmt
Codex P1 on PR #173: the nightly-simd dispatch arm shadowed every other
re-export branch but dropped the lowercase aliases (`f32x16`, `f64x8`,
`u8x64`, etc.) that downstream code and docs reach for. Switching on
`--features nightly-simd` was therefore an API break instead of a
backend swap.
`src/simd_nightly/mod.rs`
+ 17 lowercase aliases (`f32x16` = `F32x16` etc.) matching the
convention already present in `simd_avx2.rs`, `simd_avx512.rs`, and
`src/simd_scalar.rs`. Reaches every numeric type the other backends
expose under their lowercase names.
`src/simd.rs`
+ Lowercase names added to the nightly dispatch arm's `pub use`
list so they reach `crate::simd::*` alongside the PascalCase ones.
Also runs rustfmt against the file — the multi-clause `#[cfg(all(...))]`
attrs that Phase 2 introduced exceed the column budget and rustfmt
prefers the vertical block layout.1 parent f857a81 commit a7ca029
2 files changed
Lines changed: 58 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
291 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
292 | 297 | | |
293 | 298 | | |
294 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
295 | 304 | | |
296 | 305 | | |
297 | 306 | | |
| |||
1593 | 1602 | | |
1594 | 1603 | | |
1595 | 1604 | | |
1596 | | - | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1597 | 1610 | | |
1598 | 1611 | | |
1599 | 1612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments