Browse Source

Merge pull request #1515 from martin-frbg/mipsdot

Correct precision of mips dsdot
tags/v0.3.0^2
Martin Kroeker GitHub 7 years ago
parent
commit
2ca0faf495
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      kernel/mips/dot.c

+ 5
- 2
kernel/mips/dot.c View File

@@ -41,8 +41,11 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)

while(i < n)
{

dot += y[iy] * x[ix] ;
#if defined(DSDOT)
dot += (double)(y[iy] * (double)x[ix] ;
#else
dot += y[iy] * x[ix];
#endif
ix += inc_x ;
iy += inc_y ;
i++ ;


Loading…
Cancel
Save