Skip to content

Consider replacing + primitive with 2* #1

Open
@larsbrinkhoff

Description

@larsbrinkhoff

A single left shift ought to be smaller in hardware than an adder.

+ would be defined approximately as:

: +    begin ?dup while 2dup xor -rot and 2* repeat ;

Since this depends on xor, it would have to be recoded without +:

: xor   2dup nand dup >r nand swap r> nand nand ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions