! \brief Executes a binary operation. This just calls either execute_binary1 or execute_binary2. \param lhs pointer to the left hand side operand and result. \param operation \ref ngc_binary_op_t enum value. \param rhs pointer to the right hand side operand. \returns #Error::Ok enum value if processed without error, appropriate \ref Error enum value if not. */
| 216 | \returns #Error::Ok enum value if processed without error, appropriate \ref Error enum value if not. |
| 217 | */ |
| 218 | static Error execute_binary(float& lhs, ngc_binary_op_t operation, const float& rhs) { |
| 219 | if (operation <= Binary_Binary2) |
| 220 | return execute_binary1(lhs, operation, rhs); |
| 221 | |
| 222 | return execute_binary2(lhs, operation, rhs); |
| 223 | } |
| 224 | |
| 225 | /*! \brief Executes an unary operation: ABS, ACOS, ASIN, COS, EXP, FIX, FUP, LN, ROUND, SIN, SQRT, TAN |
| 226 |
no test coverage detected