Help Center
Help CenterFreeBASIC

__FB_FPU__keyword

Intrinsic define set by the compiler

Intrinsic Defineskeyworddocumented

Syntax

__FB_FPU__

Description


For x86 and x86_64 targets:
    • Defined as "sse" if SSE floating point arithmetics is enabled, and
    • defined as "x87" otherwise

For arm and aarch64 targets:
    • Defined as "neon" if Advanced SIMD (Neon) extension is enabled, and
    • defined as "x87" otherwise

Remarks

Version


  • __FB_FPU__ = neon added in fbc 1.20.0

Differences from QB


  • New to FreeBASIC

See also


Example


#if __FB_FPU__ = "sse"

  ' ... instructions only for SSE ...

#else

  ' ... instructions not for SSE ...

#endif


Reference

  • Documented in KeyPgDdfbfpu.html