◐ Shell
clean mode source ↗

std::fma – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<cmath>

float fma( float x, float y, float z );

(1) (seit C++11)

double fma( double x, double y, double z );

(2) (seit C++11)

long double fma( long double x, long double y, long double z );

(3) (seit C++11)

Promoted fma( Arithmetic x, Arithmetic y, Arithmetic z );

(4) (seit C++11)

#define FP_FAST_FMA /* implementation-defined */

(5) (seit C++11)

#define FP_FAST_FMAF /* implementation-defined */

(6) (seit C++11)

#define FP_FAST_FMAL /* implementation-defined */

(7) (seit C++11)

Die FMA Funktionen berechnen (x*y) + z, wie ein ternären Betrieb abgerundet, nach dem

Original:

The fma functions compute (x*y) + z, rounded as one ternary operation, according to the

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Rundungsmodus durch den Wert der dadurch FLT_ROUNDS .

Original:

rounding mode characterized by the value of FLT_ROUNDS.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

4)

Wenn ein Argument hat integralen Typ, wird es double gegossen. Wenn ein anderes Argument long double ist, dann ist der Rückgabetyp long double ist, sonst ist es double .

Original:

If any argument has integral type, it is cast to double. If any other argument is long double, then the return type is long double, otherwise it is double.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

5-7)

Wenn die Makro-Konstanten FP_FAST_FMAF, FP_FAST_FMA oder FP_FAST_FMAL definiert sind, die Funktion std::fma wertet schneller als die Expression x*y+z für float, double und long double Argumente sind. Wenn definiert, diese Makros zu Integer 1 auszuwerten .

Original:

If the macro constants FP_FAST_FMAF, FP_FAST_FMA, or FP_FAST_FMAL are defined, the function std::fma evaluates faster than the expression x*y+z for float, double, and long double arguments, respectively. If defined, these macros evaluate to integer 1.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parameter

x, y, z -

Fließkommazahlen

Original:

floating point values

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Rückgabewert

(x*y) + z, abgerundet, wie ein ternären Betrieb

Original:

(x*y) + z, rounded as one ternary operation

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Siehe auch

unterzeichnet Rest der Teilungsoperation

Original:

signed remainder of the division operation

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Funktion) [edit]

unterzeichnet Rest sowie die letzten drei Bits der Division

Original:

signed remainder as well as the three last bits of the division operation

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Funktion) [edit]