llvm::APFloat::getOne

Factory for Positive and Negative One.

Synopsis

Declared in <llvm/ADT/APFloat.h>

static
APFloat
getOne(
    fltSemantics const& Sem,
    bool Negative = false);

Return Value

one with the given sign

Parameters

NameDescription
Semfloating-point semantics for the result
NegativeTrue iff the number should be negative.