Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need add more bitwise operators #152

Closed
bashar963syr opened this issue Aug 20, 2018 · 3 comments
Closed

Need add more bitwise operators #152

bashar963syr opened this issue Aug 20, 2018 · 3 comments

Comments

@bashar963syr
Copy link

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

@mariuszgromada
Copy link
Owner

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

@mariuszgromada
Copy link
Owner

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 mariuszgromada added this to the v.5.0 Leonis milestone Jan 16, 2022
@mariuszgromada mariuszgromada removed this from the v.5.0 Leonis milestone Apr 10, 2022
@mariuszgromada mariuszgromada added this to the v.6.0 Orion milestone Sep 3, 2022
@mariuszgromada mariuszgromada modified the milestone: v.6.0 Picon May 12, 2024
@mariuszgromada
Copy link
Owner

Done, added
"@~&" as NAND
"@~|" as NOR
"@~^" as XOR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants