Commit 9dd59f2
committed
BUG: Fix LUT compile failures on MSVC and Highway debug builds
Two portability issues in the transposed-load LUT path:
- kTransposeLength evaluated to 0 when kInitTranspose is false
(kRows < kTransposeBy), producing a zero-size array that MSVC
rejects. Clamp it to 1 as an unused placeholder.
- Lanes(du) is not constexpr in Highway debug builds, so it cannot
initialize a constexpr size_t. Use the HWY_LANES(T) macro, which
is a compile-time constant in all build modes.1 parent 5f1646d commit 9dd59f2
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | | - | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
240 | | - | |
| 243 | + | |
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
| |||
0 commit comments