__FB_FPU__
 
Intrinsic define set by the compiler

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

Example

#if __FB_FPU__ = "sse"
  ' ... instructions only for SSE ...
#else
  ' ... instructions not for SSE ...
#endif

Version

  • __FB_FPU__ = neon added in fbc 1.20.0

Differences from QB

  • New to FreeBASIC

See also