std::fma
De 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. |
</div> </div>
Déclaré dans l'en-tête <cmath>
|
||
float fma( float x, float y, float z ); |
(1) | (depuis C++11) |
double fma( double x, double y, double z ); |
(2) | (depuis C++11) |
long double fma( long double x, long double y, long double z ); |
(3) | (depuis C++11) |
Promoted fma( Arithmetic x, Arithmetic y, Arithmetic z ); |
(4) | (depuis C++11) |
#define FP_FAST_FMA /* implementation-defined */ |
(5) | (depuis C++11) |
#define FP_FAST_FMAF /* implementation-defined */ |
(6) | (depuis C++11) |
#define FP_FAST_FMAL /* implementation-defined */ |
(7) | (depuis C++11) |
Calculer les fonctions fma (x*y) + z, arrondie comme une opération ternaire, selon l'
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.
mode d'arrondi caractérisé par la valeur de 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.
Si un argument est de type intégral, il est jeté à double. Si aucun autre argument est long double, puis le type de retour est long double, sinon il est 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.
Si les constantes macro
FP_FAST_FMAF
, FP_FAST_FMA
ou FP_FAST_FMAL
sont définies, la fonction évalue std::fma
plus vite que l'expression x*y+z pour float, double, arguments et long double, respectivement. Si elle est définie, ces macros à évaluer 1 entier .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.
[modifier] Paramètres
x, y, z | - | valeurs à virgule flottante
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. |
[modifier] Retourne la valeur
(x*y) + z, arrondie comme une opération ternaire
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.
[modifier] Voir aussi
(C++11) |
signé reste de l'opération de division 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. (fonction) |
(C++11) |
signé reste ainsi que les trois derniers bits de l'opération de 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. (fonction) |