Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
native: use asm.DscalInc in Dscal
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed Jan 15, 2016
1 parent 9707fcb commit 5bef9b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions native/level1double.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,5 @@ func (Implementation) Dscal(n int, alpha float64, x []float64, incX int) {
asm.DscalUnitary(alpha, x[:n])
return
}
for ix := 0; ix < n*incX; ix += incX {
x[ix] *= alpha
}
asm.DscalInc(alpha, x, uintptr(n), uintptr(incX), 0)
}

0 comments on commit 5bef9b6

Please sign in to comment.