title: Assembly's fsqrt for iOS
body: <p>I have been implementing a Vector Math library in C++, using Assembly at some points to improve computational performance.</p>
  
  <p>One of the greater gains is due to implementing the Assembly code for Square Root as described in <a href="http://www.codeproject.com/Articles/69941/Best-Square-Root-Method-Algorithm-Function-Precisi" rel="nofollow noreferrer">http://www.codeproject.com/Articles/69941/Best-Square-Root-Method-Algorithm-Function-Precisi</a></p>
  
  <p>However, of course such implementation only works for x86, as it was already pointed in a past question about this very same code: <a href="https://stackoverflow.com/questions/23301293/how-to-get-this-sqrt-inline-assembly-working-for-ios">How to get this sqrt inline assembly working for iOS</a></p>
  
  <p>Now, my question is: there is any workaround, or is there any way to implement something similar to the following inline-assembly code but that also works for iOS, considering that fsqrt is x86-only?</p>
  
  <pre><code>double inline __declspec (naked) __fastcall sqrt14(double n)
  {
      _asm fld qword ptr [esp+4]
      _asm fsqrt
      _asm ret 8
  } 
  </code></pre>
  
  <p>Thanks in advance for your time.</p>
  
  <p>EDIT: I am using Visual Studio 2013 to code and compile.</p>