llvm::APInt::getLimitedValue

Return this value, or Limit if this value is larger.

Synopsis

Declared in <llvm/ADT/APInt.h>

uint64_t
getLimitedValue(uint64_t Limit = UINT64_MAX) const;

Description

This causes the value to saturate to the limit.

Return Value

This value, or Limit if this value is larger.

Parameters

NameDescription
LimitMaximum value to return