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. |
Defined in header <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) |
Las funciones fma calcular (x*y) + z, redondeado como operación ternario, de acuerdo con el
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.
redondeo modo caracteriza por el 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.
Si algún argumento es de tipo integral, que se convierte en double. Si cualquier otro argumento es long double, entonces el tipo de retorno es long double, de lo contrario 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.
Si las constantes macro
FP_FAST_FMAF
, FP_FAST_FMA
, o FP_FAST_FMAL
se definen, el std::fma
función evalúa más rápido que la expresión x*y+z para float, double, argumentos long double y, respectivamente. Si se define, estas macros para evaluar 1 entero .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 punto flotante
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, redondeado como operación ternario
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] Ver también
(C++11) |
firmado resto de la operación de división 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. (función) |
(C++11) |
firmado resto, así como los tres últimos bits de la operación de división 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. (función) |