[Gridflow-cvs] [svn] commit: r6561 - /trunk/src/numop1.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sat Feb 5 22:52:15 EST 2011


Author: matju
Date: Sat Feb  5 22:52:15 2011
New Revision: 6561

Log:
add unary+

Modified:
    trunk/src/numop1.cxx

Modified: trunk/src/numop1.cxx
==============================================================================
--- trunk/src/numop1.cxx (original)
+++ trunk/src/numop1.cxx Sat Feb  5 22:52:15 2011
@@ -69,6 +69,7 @@
 
 DEF_OP(logic_not, !a);
 DEF_OP(not, -1-a); // because ~a doesn't exist for T=float
+DEF_OP(unary_plus, a);   // for use by #expr
 DEF_OP(unary_minus, -a); // for use by #expr
 DEF_OP(abs, a<0 ? -a : a);
 
@@ -129,6 +130,7 @@
 	DECL_OP_FLOAT(log,  "ln"),    DECL_VOP_FLOAT(cx_log,  "C.ln",   2),
 // introduced at 9.12
 	DECL_OP(unary_minus, "unary-"),
+	DECL_OP(unary_plus,  "unary+"),
 	DECL_OP(logic_not, "!"),
 	DECL_OP(not, "~"),
 	DECL_OP(abs, "abs"),



More information about the Gridflow-cvs mailing list