Advertisement
Elun

Untitled

Jan 1st, 2016
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. // compute correctly:
  2. reduce(hh, bufferA);
  3. reduce(bufferA, hh);
  4. reduce(hh, bufferA);
  5.  
  6.  
  7. // and error in this case.
  8. for(int i = 0; i < 3; i++)
  9. {
  10. if(i == 0)
  11. {
  12. reduce(hh, bufferA);
  13. }
  14. else if(i == 1)
  15. {
  16. reduce(bufferA, hh);
  17. }
  18. else
  19. {
  20. reduce(hh, bufferA);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement