Geogram Version 1.10.1
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GeoAssertNoFpContract Struct Reference

add GEO_FP_CONTRACT_OFF at the beginning of files or functions where FMA operations should not be generated in place of a*b+c More...

#include <geogram/basic/numeric.h>

Public Member Functions

 __attribute__ ((noipa)) static double a2plusb(double a
 

Static Public Member Functions

static bool fp_contraction_enabled ()
 

Public Attributes

double b
 

Detailed Description

add GEO_FP_CONTRACT_OFF at the beginning of files or functions where FMA operations should not be generated in place of a*b+c

it is important for instance for geometric predicates, that rely on strict IEEE754 implementation of product and addition.

Definition at line 430 of file numeric.h.

Constructor & Destructor Documentation

◆ GeoAssertNoFpContract()

GeoAssertNoFpContract::GeoAssertNoFpContract ( )
inline

Definition at line 431 of file numeric.h.

Member Function Documentation

◆ fp_contraction_enabled()

static bool GeoAssertNoFpContract::fp_contraction_enabled ( )
inlinestatic

Definition at line 442 of file numeric.h.

Member Data Documentation

◆ b

double GeoAssertNoFpContract::b
Initial value:
{
return a * a + b

Definition at line 445 of file numeric.h.


The documentation for this struct was generated from the following file: