Browse Source

fix DNRM2 returning INF instead of zero due to intermediate overflow

tags/v0.3.21
Martin Kroeker GitHub 3 years ago
parent
commit
06ef015234
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      kernel/sparc/dnrm2.S

+ 8
- 0
kernel/sparc/dnrm2.S View File

@@ -387,6 +387,14 @@
FMUL fmax, c1, c1

.LL99:
#ifdef DOUBLE
set 0x000010C6F7A0B5ED8, %g1

st %g1, [%fp-8]
ld [%fp-8], a8
FCMP %fcc0, a8, fmax
fmovdg %fcc0, fzero, c1
#endif
return %i7 + 8
clr %g0



Loading…
Cancel
Save