Add degree variants of FLOP operations

- Added versions of the trig operations supported by FLOP that can work
  with degrees directly instead of radians.
- Reorder FLOPs into more sensible groupings.
This commit is contained in:
Randy Heit 2013-07-28 20:22:47 -05:00
commit ff7b1f6e5e
3 changed files with 54 additions and 27 deletions

View file

@ -101,21 +101,30 @@ static const char *const FlopNames[] =
{
"abs",
"neg",
"acos",
"asin",
"atan",
"cos",
"cosh",
"exp",
"log",
"log10",
"sin",
"sinh",
"tan",
"tanh",
"sqrt",
"ceil",
"floor"
"floor",
"acos rad",
"asin rad",
"atan rad",
"cos rad",
"sin rad",
"tan rad",
"acos deg",
"asin deg",
"atan deg",
"cos deg",
"sin deg",
"tan deg",
"cosh",
"sinh",
"tanh",
};
static int print_reg(FILE *out, int col, int arg, int mode, int immshift, const VMScriptFunction *func);