std::fma
Aus cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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.
You can help to correct and verify the translation. Click here for instructions.
Rundungsmodus durch den Wert der dadurch FLT_ROUNDS .
4) 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.
You can help to correct and verify the translation. Click here for instructions.
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 .
5-7) 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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten] 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. |
[Bearbeiten] 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.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten] Siehe auch
(C++11) |
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) |
(C++11) |
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) |