Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • xcalc xcalc
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • app
  • xcalcxcalc
  • Merge requests
  • !1

Add bitwise ops and base conversion (DEC/OCT/HEX) in TI mode

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Tim Hentenaar requested to merge hentenaar/xcalc:master into master Feb 18, 2019
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 5

These operations implicitly truncate their parameters, and result to integers:

  • not
  • and
  • or
  • xor
  • shl
  • shr
  • mod
  • trunc

Base 2 was left out of the base conversion code intentionally as it would require making the UI at least one third wider.

Attempts to change base with negative values will simply display "error." Note that with larger numbers, the result may be inaccurate due to rounding.

I've also bound the Return key to the equal() action.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master