News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

c++ : how use assembler on code?

Started by cambalinho, December 03, 2022, 09:41:03 PM

Previous topic - Next topic

cambalinho

on internet: https://www.codeproject.com/Articles/69941/Best-Square-Root-Method-Algorithm-Function-Precisi
i have seen these function:
double inline __declspec (naked) __fastcall sqrt14(double n)
{
_asm fld qword ptr [esp+4]
_asm fsqrt
_asm ret 8
}

how can i convert these code for be compatible with GNU?

Miguel Gimenez

This is OT here, ask in a GNU forum or search in StackOverflow