¡@

Home 

c++ Programming Glossary: sum3

how to achieve 4 FLOPs per cycle

http://stackoverflow.com/questions/8389648/how-to-achieve-4-flops-per-cycle

compiler might optimise away double sum1 0.1 sum2 0.1 sum3 0.2 sum4 0.2 sum5 0.0 double mul1 1.0 mul2 1.1 mul3 1.2 mul4.. inside the loop double expected 5.0 add loops sum1 sum2 sum3 sum4 sum5 pow mul loops mul1 mul2 mul3 mul4 mul5 for int i.. mul mul2 mul mul3 mul mul4 mul mul5 mul sum1 add sum2 add sum3 add sum4 add sum5 add return sum1 sum2 sum3 sum4 sum5 mul1 mul2..