LLZK 0.1.0
Veridise's ZK Language IR
|
#include "llzk/Util/APIntHelper.h"
Go to the source code of this file.
Namespaces | |
namespace | llzk |
Functions | |
llvm::APSInt | llzk::expandingAdd (const llvm::APSInt &lhs, const llvm::APSInt &rhs) |
Safely add lhs and rhs, expanding the width of the result as necessary. | |
llvm::APSInt | llzk::expandingSub (const llvm::APSInt &lhs, const llvm::APSInt &rhs) |
Safely subtract lhs and rhs, expanding the width of the result as necessary. | |
llvm::APSInt | llzk::expandingMul (const llvm::APSInt &lhs, const llvm::APSInt &rhs) |
Safely multiple lhs and rhs, expanding the width of the result as necessary. | |
std::strong_ordering | llzk::safeCmp (const llvm::APSInt &lhs, const llvm::APSInt &rhs) |
Compares lhs and rhs, regardless of the bitwidth of lhs and rhs. | |