OSDN Git Service

- Added sqrt, fixedsqrt, and vectorlength to ACC.
authorRandy Heit <rheit@zdoom.fake>
Thu, 11 Oct 2012 03:40:21 +0000 (03:40 +0000)
committerRandy Heit <rheit@zdoom.fake>
Thu, 11 Oct 2012 03:40:21 +0000 (03:40 +0000)
SVN r3884 (trunk)

pcode.c
pcode.h
symbol.c

diff --git a/pcode.c b/pcode.c
index 9d5fd41..c13bf36 100644 (file)
--- a/pcode.c
+++ b/pcode.c
@@ -476,6 +476,9 @@ static char *PCDNames[PCODE_COMMAND_COUNT] =
        "PCD_CALLSTACK",                        // from Eternity\r
        "PCD_SCRIPTWAITNAMED",\r
        "PCD_TRANSLATIONRANGE3",\r
+       "PCD_SQRT",\r
+       "PCD_FIXEDSQRT",\r
+       "PCD_VECTORLENGTH",\r
 };\r
 \r
 // CODE --------------------------------------------------------------------\r
diff --git a/pcode.h b/pcode.h
index fdad84e..fa09f64 100644 (file)
--- a/pcode.h
+++ b/pcode.h
@@ -425,6 +425,9 @@ typedef enum
        PCD_CALLSTACK,                  // from Eternity\r
        PCD_SCRIPTWAITNAMED,\r
        PCD_TRANSLATIONRANGE3,\r
+       PCD_SQRT,\r
+       PCD_FIXEDSQRT,\r
+       PCD_VECTORLENGTH,\r
 \r
        PCODE_COMMAND_COUNT\r
 } pcd_t;\r
index 3c6a6d0..1d92dde 100644 (file)
--- a/symbol.c
+++ b/symbol.c
@@ -143,6 +143,9 @@ static internFuncDef_t InternalFunctions[] =
        { "sin", PCD_NOP, PCD_SIN, 1, 0, 0, YES, NO },\r
        { "cos", PCD_NOP, PCD_COS, 1, 0, 0, YES, NO },\r
        { "vectorangle", PCD_NOP, PCD_VECTORANGLE, 2, 0, 0, YES, NO },\r
+       { "vectorlength", PCD_NOP, PCD_VECTORLENGTH, 2, 0, 0, YES, NO },\r
+       { "sqrt", PCD_NOP, PCD_SQRT, 1, 0, 0, YES, NO },\r
+       { "fixedsqrt", PCD_NOP, PCD_SQRT, 1, 0, 0, YES, NO },\r
        { "checkweapon", PCD_NOP, PCD_CHECKWEAPON, 1, 0, 0, YES, NO },\r
        { "setweapon", PCD_NOP, PCD_SETWEAPON, 1, 0, 0, YES, NO },\r
        { "setmarineweapon", PCD_NOP, PCD_SETMARINEWEAPON, 2, 0, 0, NO, NO },\r