MathParser.org-mXparser icon indicating copy to clipboard operation
MathParser.org-mXparser copied to clipboard

Need add more bitwise operators

Open bashar963syr opened this issue 7 years ago • 2 comments

need to add more bitwise operators The current bitwise operators are and, or and shifting but it would be more helpful if You add xor, nand, nor, xnor Or it would be more efficient if you can add a future to add custom operators

bashar963syr avatar Aug 20 '18 23:08 bashar963syr

This should be easy to add - will do that in the next release.

mariuszgromada avatar Sep 17 '18 10:09 mariuszgromada

What symbol do you propose for this missing operators? Currently available bitwise operators below:

mXparser.consolePrintHelp("bitwise");

    #  key word            type                    syntax                                        since description
    -  --------            ----                    ------                                        ----- -----------
  345. @~                  <Bitwise Operator>      @~a                                           4.0   Bitwise unary complement
  346. @&                  <Bitwise Operator>      a @& b                                        4.0   Bitwise AND
  347. @^                  <Bitwise Operator>      a @^ b                                        4.0   Bitwise exclusive OR
  348. @|                  <Bitwise Operator>      a @| b                                        4.0   Bitwise inclusive OR
  349. @<<                 <Bitwise Operator>      a @<< b                                       4.0   Signed left shift
  350. @>>                 <Bitwise Operator>      a @>> b                                       4.0   Signed right shift

mariuszgromada avatar Jan 18 '19 19:01 mariuszgromada