Author Topic: c++ : how use assembler on code?  (Read 541 times)

Offline cambalinho

  • Multiple posting newcomer
  • *
  • Posts: 77
c++ : how use assembler on code?
« on: December 03, 2022, 09:41:03 pm »
on internet: https://www.codeproject.com/Articles/69941/Best-Square-Root-Method-Algorithm-Function-Precisi
i have seen these function:
Code
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?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1262
Re: c++ : how use assembler on code?
« Reply #1 on: December 04, 2022, 09:48:28 am »
This is OT here, ask in a GNU forum or search in StackOverflow