1
0
Fork 0

DBG: changed mulhi operator symbol

This commit is contained in:
Mr. eXoDia 2014-12-14 01:52:27 +01:00
parent 388d5a0afe
commit b29695b8ab
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ use one.</P>
<P><U>2:not</U>: '~' The not operator can be used before a
number of a variable, like in C.</P>
<P><U>3:muliplication/devision</U>: '*' = regular
multiplication (signed/unsigned), '$' = get the higher part of the
multiplication (signed/unsigned), '`' = get the higher part of the
multiplication, '/' = regular devision (signed/unsigned, devide by zero=error)
and '%' = get the modulo (remainder) of the devision.</P>
<P><U>4:addition/substraction</U>: '+' and '-'</P>

View File

@ -34,7 +34,7 @@ int mathisoperator(char ch)
return 1;
else if(ch == '~')
return 2;
else if(ch == '*' or ch == '$' or ch == '/' or ch == '%')
else if(ch == '*' or ch == '`' or ch == '/' or ch == '%')
return 3;
else if(ch == '+' or ch == '-')
return 4;
@ -122,7 +122,7 @@ bool mathdounsignedoperation(char op, uint left, uint right, uint* result)
case '*':
*result = left * right;
return true;
case '$':
case '`':
*result = umulhi(left, right);
return true;
case '/':
@ -171,7 +171,7 @@ bool mathdosignedoperation(char op, sint left, sint right, sint* result)
case '*':
*result = left * right;
return true;
case '$':
case '`':
*result = mulhi(left, right);
return true;
case '/':