User forums > Using Code::Blocks

c++ : how use assembler on code?

(1/1)

cambalinho:
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
}
--- End code ---
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

Navigation

[0] Message Index

Go to full version