Commit fea5832
committed
fix: clean f16 subnormal exponent math (113 + e, no .max(0) band-aid)
f16 bias=15, f32 bias=127. Subnormal exponent = 1-15 = -14.
After mantissa normalization: f32_exp = 127 + (1-15) + e = 113 + e.
Minimum e = -10 → f32_exp = 103. Always valid, no clamp needed.
https://claude.ai/code/session_01Y69Vnw751w75iVSBRws7o71 parent 9f12491 commit fea5832
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
430 | 433 | | |
431 | 434 | | |
432 | 435 | | |
| |||
0 commit comments