Page MenuHomePhabricator

[64-bit ints] Move `{Add,Sub}Int63Overflow(Emulated)` impl to cpp file
Needs RevisionPublic

Authored by tobias_ruck on Fri, Oct 25, 07:48.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Summary

Currently, importing these generates a lot of warning: unused function, so we move the impl to their own cpp files, and turn intmath.h into just a normal header file without impl.

Test Plan

ninja check

Diff Detail

Event Timeline

Fabien requested changes to this revision.Fri, Oct 25, 12:37
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/script/intmath.cpp
1

Macro whatyearisit:

4

nope

10

move it first:

#include <script/intmath.h>

#include <cstdlib>
#include <limits>
26

This probably never worked to begin with, because you're missing the config include snippet:

#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
60

dito

src/script/intmath.h
7

I don't think you need this one, but you might want cstdint

This revision now requires changes to proceed.Fri, Oct 25, 12:37