Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/include/llvm/ADT/APInt.h
Show First 20 Lines • Show All 2,206 Lines • ▼ Show 20 Lines | |||||
/// coefficients. | /// coefficients. | ||||
Optional<APInt> SolveQuadraticEquationWrap(APInt A, APInt B, APInt C, | Optional<APInt> SolveQuadraticEquationWrap(APInt A, APInt B, APInt C, | ||||
unsigned RangeWidth); | unsigned RangeWidth); | ||||
} // End of APIntOps namespace | } // End of APIntOps namespace | ||||
// See friend declaration above. This additional declaration is required in | // See friend declaration above. This additional declaration is required in | ||||
// order to compile LLVM with IBM xlC compiler. | // order to compile LLVM with IBM xlC compiler. | ||||
hash_code hash_value(const APInt &Arg); | hash_code hash_value(const APInt &Arg); | ||||
} // End of llvm namespace | |||||
/// StoreIntToMemory - Fills the StoreBytes bytes of memory starting from Dst | |||||
/// with the integer held in IntVal. | |||||
void StoreIntToMemory(const APInt &IntVal, uint8_t *Dst, unsigned StoreBytes); | |||||
/// LoadIntFromMemory - Loads the integer stored in the LoadBytes bytes starting | |||||
/// from Src into IntVal, which is assumed to be wide enough and to hold zero. | |||||
void LoadIntFromMemory(APInt &IntVal, uint8_t *Src, unsigned LoadBytes); | |||||
} // namespace llvm | |||||
#endif | #endif |