std::fma
Da 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. |
Definido no cabeçalho <cmath>
|
||
float fma( float x, float y, float z ); |
(1) | (desde C++11) |
double fma( double x, double y, double z ); |
(2) | (desde C++11) |
long double fma( long double x, long double y, long double z ); |
(3) | (desde C++11) |
Promoted fma( Arithmetic x, Arithmetic y, Arithmetic z ); |
(4) | (desde C++11) |
#define FP_FAST_FMA /* implementation-defined */ |
(5) | (desde C++11) |
#define FP_FAST_FMAF /* implementation-defined */ |
(6) | (desde C++11) |
#define FP_FAST_FMAL /* implementation-defined */ |
(7) | (desde C++11) |
As funções fma calcular (x*y) + z, arredondado como uma operação ternária, de acordo com a
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.
modo de arredondamento caracterizado por o valor 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.
Se algum argumento tem tipo integral, ele é convertido para double. Se qualquer outro argumento é long double, em seguida, o tipo de retorno é long double, caso contrário é 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.
Se as constantes macro
FP_FAST_FMAF
, FP_FAST_FMA
, ou FP_FAST_FMAL
são definidos, a função avalia std::fma
mais rápido do que a expressão x*y+z para float, double, argumentos e long double, respectivamente. Se definido, essas macros para avaliar 1 inteiro.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.
[editar] Parâmetros
x, y, z | - | valores de ponto flutuante
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. |
[editar] Valor de retorno
(x*y) + z, arredondado como uma operação ternária
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.
[editar] Veja também
(C++11) |
assinado restante da operação de divisão 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. (função) |
(C++11) |
assinado restante, bem como os três últimos bits da operação de divisão 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. (função) |