Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 1.91 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ## Intrinsics Multiply
  2.         template<>
  3.         __forceinline void MultiplyInstance(const Vector4<float>& other) {                                                             
  4.                 _mm_store_ps(this->Elements, _mm_mul_ps(_mm_load_ps(this->Elements), _mm_load_ps(other.Elements)));    
  5.         }
  6.  
  7. ## Regular Multiply
  8.         template <typename T>
  9.         __forceinline void MultiplyInstance(const Vector4<T>& other) {
  10.                 this->X *= other.X;
  11.                 this->Y *= other.Y;
  12.                 this->Z *= other.Z;
  13.                 this->W *= other.W;
  14.         }
  15.  
  16. ## Win32 Release ASM
  17. 00B11F94  fld         dword ptr [esp+10h]  
  18. 00B11F98  inc         ecx  
  19. 00B11F99  fmul        st,st(2)  
  20. 00B11F9B  mov         dword ptr [esp+8],ecx  
  21. 00B11F9F  fstp        dword ptr [esp+10h]  
  22. 00B11FA3  fld         dword ptr [esp+14h]  
  23. 00B11FA7  fmul        st,st(2)  
  24. 00B11FA9  fstp        dword ptr [esp+14h]  
  25. 00B11FAD  fld         dword ptr [esp+18h]  
  26. 00B11FB1  fmul        st,st(2)  
  27. 00B11FB3  fstp        dword ptr [esp+18h]  
  28. 00B11FB7  fld         dword ptr [esp+1Ch]  
  29. 00B11FBB  fmul        st,st(2)  
  30. 00B11FBD  fstp        dword ptr [esp+1Ch]  
  31. 00B11FC1  fild        dword ptr [esp+8]  
  32. 00B11FC5  fcomp       st(1)  
  33. 00B11FC7  fnstsw      ax  
  34. 00B11FC9  test        ah,5  
  35.  
  36. ## Win32 Release With Intrinsics ASM
  37. 00261FD5  mulps       xmm0,xmm1
  38.  
  39. ## x64 Release ASM
  40. 000000013F6423F7  mulss       xmm8,xmm6  
  41. 000000013F6423FC  mulss       xmm7,xmm6  
  42. 000000013F642400  movd        xmm0,r11d  
  43. 000000013F642405  mulss       xmm9,xmm6  
  44. 000000013F64240A  mulss       xmm10,xmm6  
  45. 000000013F64240F  cvtdq2pd    xmm0,xmm0  
  46. 000000013F642413  comisd      xmm11,xmm0  
  47.  
  48.  
  49. ## x64 Release With Intrinsics ASM
  50. 000000013FD22406  movaps      xmm2,xmmword ptr [rbp+7]  
  51. 000000013FD2240A  movaps      xmm1,xmmword ptr [rbp-9]  
  52. 000000013FD2240E  xchg        ax,ax  
  53. 000000013FD22410  inc         r11d  
  54. 000000013FD22413  mulps       xmm1,xmm2  
  55. 000000013FD22416  movd        xmm0,r11d  
  56. 000000013FD2241B  cvtdq2pd    xmm0,xmm0  
  57. 000000013FD2241F  comisd      xmm7,xmm0