added native double round(double) function
This commit is contained in:
parent
5661e39ca7
commit
380398bcd6
6 changed files with 10 additions and 0 deletions
|
|
@ -82,6 +82,8 @@ static const FLOP FxFlops[] =
|
|||
{ NAME_CosH, FLOP_COSH, [](double v) { return g_cosh(v); } },
|
||||
{ NAME_SinH, FLOP_SINH, [](double v) { return g_sinh(v); } },
|
||||
{ NAME_TanH, FLOP_TANH, [](double v) { return g_tanh(v); } },
|
||||
|
||||
{ NAME_Round, FLOP_ROUND, [](double v) { return round(v); } },
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -181,6 +181,8 @@ static const char *const FlopNames[] =
|
|||
"cosh",
|
||||
"sinh",
|
||||
"tanh",
|
||||
|
||||
"round",
|
||||
};
|
||||
|
||||
static int print_reg(FILE *out, int col, int arg, int mode, int immshift, const VMScriptFunction *func);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue