HomePhabricator

Add AddInt63Overflow and SubInt63Overflow

Description

Add AddInt63Overflow and SubInt63Overflow

Summary:
Computes 63+sign-bit addition and subtraction with overflow checks. It uses builtin_saddll_overflow and builtin_ssubll_overflow if available and falls back to AddInt63OverflowEmulated and SubInt63OverflowEmulated otherwise.

Allows 63+sign-bit integers in Script down the line.

Test Plan: ninja check

Reviewers: deadalnix, O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: majcosta, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D9928

Details

Provenance
tobias_ruckAuthored on Aug 25 2021, 04:42
tobias_ruckPushed on Sep 23 2021, 15:56
Reviewer
Restricted Owners Package
Differential Revision
D9928: Add AddInt63Overflow and SubInt63Overflow
Parents
rABC184dbf064fdd: refactor: Remove negative lock annotations from globals
Branches
Unknown
Tags
Unknown