Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. double fast_sqrt_1(double n)
  2. {
  3.   __asm{
  4.      fld n
  5.      fsqrt
  6.    }
  7. }
  8.  
  9. double inline __declspec (naked) __fastcall faster_sqrt_2(double n)
  10. {
  11.     _asm fld qword ptr [esp+4]
  12.     _asm fsqrt
  13.     _asm ret 8
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement