◐ Shell
clean mode source ↗

std::fma - cppreference.com

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.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

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)

long double fma( long double x, long double y, long double 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.

modalità di arrotondamento caratterizzato dal valore di 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)

Se un qualsiasi argomento è di tipo integrale, il cast double. Se qualsiasi altro argomento è long double, quindi il tipo di ritorno è long double, altrimenti è 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)

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 long double, 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 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.

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.

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.

Vedi anche

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) [modifica]

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) [modifica]