[Gridflow-cvs] [svn] commit: r6808 - /trunk/src/expr.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Nov 6 16:21:43 EST 2011


Author: matju
Date: Sun Nov  6 16:21:42 2011
New Revision: 6808

Log:
much faster operator lookup

Modified:
    trunk/src/expr.cxx

Modified: trunk/src/expr.cxx
==============================================================================
--- trunk/src/expr.cxx (original)
+++ trunk/src/expr.cxx Sun Nov  6 16:21:42 2011
@@ -206,14 +206,14 @@
 				stack.push_back(inputs[code[i].a_index & 255]);
 			  } break;
 			  case A_OP: {
-				Numop2 *op = TO(Numop2 *,Atom(code[i].a_symbol->s_name));
+				Numop2 *op = (Numop2 *)op_dict[code[i].a_symbol]; //TO(Numop2 *,Atom(code[i].a_symbol->s_name));
 				float b = lookup(stack.back()); stack.pop_back();
 				float a = lookup(stack.back());
 				op->map(1,&a,b);
 				stack.back() = a;
 			  } break;
 			  case A_OP1: {
-				Numop1 *op = TO(Numop1 *,Atom(code[i].a_symbol->s_name));
+				Numop1 *op = (Numop1 *)op_dict[code[i].a_symbol]; //TO(Numop1 *,Atom(code[i].a_symbol->s_name));
 				float a = lookup(stack.back());
 				op->map(1,&a);
 				stack.back() = a;



More information about the Gridflow-cvs mailing list