Remove handwritten saxpy because compilers optimize the second look anyway.

This commit is contained in:
Tomasz Sobczyk
2020-11-25 20:37:38 +01:00
committed by nodchip
parent 15c528ca7b
commit 1c8495b54b
2 changed files with 5 additions and 46 deletions
@@ -164,7 +164,7 @@ namespace Eval::NNUE {
const IndexType weights_offset = kHalfDimensions * feature.get_index();
Blas::saxpy(
kHalfDimensions, (float)feature.get_count(),
&weights_[weights_offset], 1, &output_[output_offset], 1
&weights_[weights_offset], &output_[output_offset]
);
}
@@ -497,8 +497,8 @@ namespace Eval::NNUE {
Blas::saxpy(
kHalfDimensions, -scale,
&gradients_[output_offset], 1,
&weights_[weights_offset], 1
&gradients_[output_offset],
&weights_[weights_offset]
);
#endif