XPresso calculation flags.
Enumerator |
---|
GV_CALC_NOP | No calculation.
|
GV_CALC_CLR | Clear: (static_cast<TYPE*>(dest))[cpu_id] = 0
|
GV_CALC_SET | Set: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id]
|
GV_CALC_ADD | Add: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] + source2[cpu_id]
|
GV_CALC_SUB | Subtract: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] - source2[cpu_id]
|
GV_CALC_MUL | Multiply: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] * source2[cpu_id]
|
GV_CALC_DIV | Divide: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] / source2[cpu_id]
|
GV_CALC_MOD | Modulo: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] % source2[cpu_id]
|
GV_CALC_CRS | Cross product: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] x source2[cpu_id]
|
GV_CALC_INV | Invert: (static_cast<TYPE*>(dest))[cpu_id] = 1 / source1[cpu_id]
|
GV_CALC_NEG | Negate: (static_cast<TYPE*>(dest))[cpu_id] = -source1[cpu_id]
|
GV_CALC_CMP | Compare: (static_cast<Int32*>(dest))[cpu_id] = source1[cpu_id] <, ==, > source2[cpu_id] => -1, 0, 1
|
GV_CALC_EQU | Equal: (static_cast<Bool*>(dest))[cpu_id] = source1[cpu_id] == source2[cpu_id]
|
GV_CALC_NIL | Is null: (static_cast<Bool*>(dest))[cpu_id] = source1[cpu_id] == 0
|
GV_CALC_STR | Print: *(static_cast<String*>(dest)) = String(source1[cpu_id])
|
GV_CALC_MIX | Mix: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] * parm1 + source2[cpu] * (1 - parm1)
|
GV_CALC_ABS | Absolute value: (static_cast<TYPE*>(dest))[cpu_id] = Abs(source1[cpu_id])
|
GV_CALC_ADR | Add real: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] + parm1
|
GV_CALC_SUR | Subtract real: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] - parm1
|
GV_CALC_MUR | Multiply real: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] * parm1
|
GV_CALC_DIR | Divide real: (static_cast<TYPE*>(dest))[cpu_id] = source1[cpu_id] / parm1
|
GV_CALC_DEF | Set real: (static_cast<TYPE*>(dest))[cpu_id] = (TYPE)parm1
|
GV_CALC_DOT | Dot product: (static_cast<Float*>(dest))[cpu_id] = source1[cpu_id] * source2[cpu_id]
|
GV_CALC_STD | A combination of GV_CALC_CLR and GV_CALC_SET. Must be implemented.
|