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

Feat/unify bool #914

Merged
merged 13 commits into from
Nov 27, 2024
Merged

Feat/unify bool #914

merged 13 commits into from
Nov 27, 2024

Commits on Nov 26, 2024

  1. opt: add peephole recipe for new normalized boolean

    The routine .code.__LEI16 already returns a normalized [0, 1] boolean.
    boriel committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    9068de3 View commit details
    Browse the repository at this point in the history
  2. opt: improve norm bool sequence

    ;; The sequence:
    ;;   sbc a, a   ; A is either 0 or -1
    ;;   sub 1
    ;;   sbc a, a
    ;;   inc a
    ;; can be replaced by
    ;;   neg        ; A is either 0 or 1
    boriel committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    10f0bac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ebcc809 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5777f14 View commit details
    Browse the repository at this point in the history
  5. opt: this recipe can also be applied for others cmps

    concretely for core.__LEI8, core.__LTI8, core.__NOT32
    
    Others like AND16 could be converted (saves memory, but reduces
    speed). In the future there would be a recipe for that.
    boriel committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    545250f View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2024

  1. Configuration menu
    Copy the full SHA
    7bef7fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d58b771 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a4ab332 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ce2707 View commit details
    Browse the repository at this point in the history
  5. feat: make XOR bool normalized

    boriel committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    2d1dbae View commit details
    Browse the repository at this point in the history
  6. test: update zxnext tests

    boriel committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    8c30906 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2f57028 View commit details
    Browse the repository at this point in the history
  8. test: update tests

    boriel committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    45d5174 View commit details
    Browse the repository at this point in the history