ΒΆtemplate <class DigitsT>
std::pair<DigitsT, int16_t> getDifference(
    DigitsT LDigits,
    int16_t LScale,
    DigitsT RDigits,
    int16_t RScale)

Description

Get the difference of two scaled numbers. Get LHS minus RHS with as much precision as possible. Returns \c (0, 0) if the RHS is larger than the LHS.

Declared at: llvm/include/llvm/Support/ScaledNumber.h:372

Templates

DigitsT

Parameters

DigitsT LDigits
int16_t LScale
DigitsT RDigits
int16_t RScale