29 #ifndef JUCE_BIGINTEGER_H_INCLUDED 30 #define JUCE_BIGINTEGER_H_INCLUDED 70 #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS 89 bool operator[] (
int bit)
const noexcept;
112 void clearBit (
int bitNumber)
noexcept;
115 void setBit (
int bitNumber);
118 void setBit (
int bitNumber,
bool shouldBeSet);
126 void setRange (
int startBit,
int numBits,
bool shouldBeSet);
129 void insertBit (
int bitNumber,
bool shouldBeSet);
136 BigInteger getBitRange (
int startBit,
int numBits)
const;
145 uint32 getBitRangeAsInt (
int startBit,
int numBits)
const noexcept;
152 void setBitRangeAsInt (
int startBit,
int numBits,
uint32 valueToSet);
159 void shiftBits (
int howManyBitsLeft,
int startBit);
162 int countNumberOfSetBits()
const noexcept;
169 int findNextSetBit (
int startIndex)
const noexcept;
176 int findNextClearBit (
int startIndex)
const noexcept;
211 BigInteger operator>> (
int numBitsToShift)
const;
257 void inverseModulo (
const BigInteger& modulus);
268 void setNegative (
bool shouldBeNegative)
noexcept;
282 String toString (
int base,
int minimumNumCharacters = 1)
const;
289 void parseString (
StringRef text,
int base);
308 void loadFromMemoryBlock (
const MemoryBlock& data);
317 void ensureSize (
size_t);
318 void shiftLeft (
int bits,
int startBit);
319 void shiftRight (
int bits,
int startBit);
334 #endif // JUCE_BIGINTEGER_H_INCLUDED Definition: juce_BigInteger.h:43
#define noexcept
Definition: juce_CompilerSupport.h:141
JUCE_API bool JUCE_CALLTYPE operator>(const String &s1, const String &s2) noexcept
Definition: juce_core.cpp:589
Definition: juce_MemoryBlock.h:38
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
unsigned int uint32
Definition: juce_MathsFunctions.h:51
Definition: juce_OutputStream.h:42
long long int64
Definition: juce_MathsFunctions.h:60
OutputStream &JUCE_CALLTYPE operator<<(OutputStream &stream, const BigInteger &value)
Definition: juce_BigInteger.cpp:896
JUCE_API bool JUCE_CALLTYPE operator<(const String &s1, const String &s2) noexcept
Definition: juce_core.cpp:590
bool operator==(const var &v1, const var &v2) noexcept
Definition: juce_Variant.cpp:565
BigInteger BitArray
Definition: juce_BigInteger.h:330
JUCE_API bool JUCE_CALLTYPE operator<=(const String &s1, const String &s2) noexcept
Definition: juce_core.cpp:592
JUCE_API bool JUCE_CALLTYPE operator>=(const String &s1, const String &s2) noexcept
Definition: juce_core.cpp:591
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition: juce_LeakedObjectDetector.h:141
bool operator!=(const var &v1, const var &v2) noexcept
Definition: juce_Variant.cpp:566
signed int int32
Definition: juce_MathsFunctions.h:49
Definition: juce_StringRef.h:65