std::fma
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <cmath> | ||
float fma(float x, float y, float z ); | (1) | (dal C++11) |
double fma(double x, double y, double z ); | (2) | (dal C++11) |
longdouble fma(longdouble x, longdouble y, longdouble z ); | (3) | (dal C++11) |
Promoted fma( Arithmetic x, Arithmetic y, Arithmetic z ); | (4) | (dal C++11) |
#define FP_FAST_FMA /* implementation-defined */ | (5) | (dal C++11) |
#define FP_FAST_FMAF /* implementation-defined */ | (6) | (dal C++11) |
#define FP_FAST_FMAL /* implementation-defined */ | (7) | (dal C++11) |
Le funzioni fma calcolare (x*y)+ z, arrotondato come un'operazione ternaria, secondo il
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.
modalità di arrotondamento caratterizzato dal valore di 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.
Se un qualsiasi argomento è di tipo integrale, il cast double. Se qualsiasi altro argomento è longdouble, quindi il tipo di ritorno è longdouble, altrimenti è double.
5-7) Original:
If any argument has integral type, it is cast to double. If any other argument is longdouble, then the return type is longdouble, 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.
Se le costanti macro
FP_FAST_FMAF
, FP_FAST_FMA
o FP_FAST_FMAL
sono definiti, il std::fma
funzione valuta più veloce l'espressione x*y+z per float, double e argomenti longdouble, rispettivamente. Se definito, queste macro restituiscono 1 intero.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 longdouble 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.
[modifica]Parametri
x, y, z | - | valori in virgola mobile 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. |
[modifica]Valore di ritorno
(x*y)+ z, arrotondato come un'unica operazione ternaria
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.
[modifica]Vedi anche
(C++11) | firmato resto della divisione 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. (funzione) |
(C++11) | firmato restante nonché gli ultimi tre bit della operazione di divisione 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. (funzione) |