Skip to content

Implement Add, Sub, CheckedAdd, CheckedSub for Uints #62

Open
@ValarDragon

Description

Summary

We should add implementations of Add, Sub, CheckedSub and CheckedAdd for Uints. These are common functions one needs when working with Uints. Currently there only exists AddMany

CheckedAdd and CheckedSub should be unsatisfiable if there is an overflow. I think the simplest checked arithmetic implementation would be to just compute the final carry bit and ensure its 0

(The checked and non-checked methods can be implemented in separate PRs!)


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Assignees

No one assigned

    Labels

    D-easyDifficulty: easyT-featureType: new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions