44 #include "RTOp_reduct_sum_value.h"
46 int RTOp_reduct_sum_value(
48 , RTOp_ReductTarget in_targ_obj, RTOp_ReductTarget inout_targ_obj )
51 *((RTOp_value_type*)inout_targ_obj) += *((RTOp_value_type*)in_targ_obj);
55 static void CALL_API external_reduct_op(
void* in_targ_array,
void* inout_targ_array
56 ,
int* len, RTOp_Datatype* datatype )
60 *in_targs = (RTOp_value_type*)in_targ_array + 3,
61 *inout_targs = (RTOp_value_type*)inout_targ_array + 3;
63 for( i = 0; i < *len; ++i, inout_targs += 4, in_targs += 4 )
64 *inout_targs += *in_targs;
67 int RTOp_get_reduct_sum_value_op(
69 , RTOp_reduct_op_func_ptr_t* reduct_op_func_ptr )
71 *reduct_op_func_ptr = external_reduct_op;