📄 dss_arith.c
字号:
break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_size(size_t *value, size_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_pid(pid_t *value, pid_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_byte(uint8_t *value, uint8_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_int8(int8_t *value, int8_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_int16(int16_t *value, int16_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_uint16(uint16_t *value, uint16_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_int32(int32_t *value, int32_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_uint32(uint32_t *value, uint32_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_int64(int64_t *value, int64_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_uint64(uint64_t *value, uint64_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_std_cntr(orte_std_cntr_t *value, orte_std_cntr_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_data_type(orte_data_type_t *value, orte_data_type_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}static void orte_dss_arith_daemon_cmd(orte_daemon_cmd_flag_t *value, orte_daemon_cmd_flag_t *operand, orte_dss_arith_op_t operation){ switch(operation) { case ORTE_DSS_ADD: (*value) += *operand; break; case ORTE_DSS_SUB: (*value) -= *operand; break; case ORTE_DSS_MUL: (*value) *= *operand; break; case ORTE_DSS_DIV: if (0 == *operand) { ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); return; } (*value) /= *operand; break; default: ORTE_ERROR_LOG(ORTE_ERR_OPERATION_UNSUPPORTED); break; } return;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -