Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dim as double tim = timer
  2. dim as double testdouble(2)
  3. dim as single testsingle(4)
  4. for i as ulong = 0 to 100000000
  5.     asm
  6.         movupd xmm0, [testdouble]
  7.         addpd xmm0, xmm0
  8.         movupd [testdouble], xmm0
  9.     end asm
  10. next
  11. print "Double: "&timer-tim
  12. tim = timer
  13. for i as ulong = 0 to 100000000
  14.     asm
  15.         movups xmm0, [testsingle]
  16.         addps xmm0, xmm0
  17.         movups [testsingle], xmm0
  18.     end asm
  19. next   
  20. print "Single: "&timer-tim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement