prevent compilers from using FMA (Reference-LAPACK PR 1033)
This commit is contained in:
parent
14a8a9a43c
commit
c8b4ceca85
|
@ -109,7 +109,7 @@
|
|||
*> \author Univ. of Colorado Denver
|
||||
*> \author NAG Ltd.
|
||||
*
|
||||
*> \ingroup doubleOTHERauxiliary
|
||||
*> \ingroup lanv2
|
||||
*
|
||||
*> \par Further Details:
|
||||
* =====================
|
||||
|
@ -248,10 +248,14 @@
|
|||
*
|
||||
* Compute [ A B ] = [ CS SN ] [ AA BB ]
|
||||
* [ C D ] [-SN CS ] [ CC DD ]
|
||||
*
|
||||
* Note: Some of the multiplications are wrapped in parentheses to
|
||||
* prevent compilers from using FMA instructions. See
|
||||
* https://github.com/Reference-LAPACK/lapack/issues/1031.
|
||||
*
|
||||
A = AA*CS + CC*SN
|
||||
B = BB*CS + DD*SN
|
||||
C = -AA*SN + CC*CS
|
||||
B = ( BB*CS ) + ( DD*SN )
|
||||
C = -( AA*SN ) + ( CC*CS )
|
||||
D = -BB*SN + DD*CS
|
||||
*
|
||||
TEMP = HALF*( A+D )
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
*> \author Univ. of Colorado Denver
|
||||
*> \author NAG Ltd.
|
||||
*
|
||||
*> \ingroup realOTHERauxiliary
|
||||
*> \ingroup lanv2
|
||||
*
|
||||
*> \par Further Details:
|
||||
* =====================
|
||||
|
@ -248,10 +248,14 @@
|
|||
*
|
||||
* Compute [ A B ] = [ CS SN ] [ AA BB ]
|
||||
* [ C D ] [-SN CS ] [ CC DD ]
|
||||
*
|
||||
* Note: Some of the multiplications are wrapped in parentheses to
|
||||
* prevent compilers from using FMA instructions. See
|
||||
* https://github.com/Reference-LAPACK/lapack/issues/1031.
|
||||
*
|
||||
A = AA*CS + CC*SN
|
||||
B = BB*CS + DD*SN
|
||||
C = -AA*SN + CC*CS
|
||||
B = ( BB*CS ) + ( DD*SN )
|
||||
C = -( AA*SN ) + ( CC*CS )
|
||||
D = -BB*SN + DD*CS
|
||||
*
|
||||
TEMP = HALF*( A+D )
|
||||
|
|
Loading…
Reference in New Issue