28#ifndef DOUBLE_CONVERSION_BIGNUM_H_
29#define DOUBLE_CONVERSION_BIGNUM_H_
42 Bignum() : used_bigits_(0), exponent_(0) {}
101 typedef uint32_t Chunk;
102 typedef uint64_t DoubleChunk;
104 static const int kChunkSize =
sizeof(Chunk) * 8;
105 static const int kDoubleChunkSize =
sizeof(DoubleChunk) * 8;
108 static const int kBigitSize = 28;
109 static const Chunk kBigitMask = (1 << kBigitSize) - 1;
114 static void EnsureCapacity(
const int size) {
115 if (
size > kBigitCapacity) {
121 bool IsClamped()
const {
122 return used_bigits_ == 0 || RawBigit(used_bigits_ - 1) != 0;
131 void BigitsShiftLeft(
const int shift_amount);
133 int BigitLength()
const {
return used_bigits_ + exponent_; }
134 Chunk& RawBigit(
const int index);
135 const Chunk& RawBigit(
const int index)
const;
136 Chunk BigitOrZero(
const int index)
const;
137 void SubtractTimes(
const Bignum& other,
const int factor);
143 int16_t used_bigits_;
145 Chunk bigits_buffer_[kBigitCapacity];
147 DOUBLE_CONVERSION_DISALLOW_COPY_AND_ASSIGN(
Bignum);
static uint32_t buffer_size(uint32_t offset, uint32_t maxAlignment)
static const int kMaxSignificantBits
static int Compare(const Bignum &a, const Bignum &b)
void AssignBignum(const Bignum &other)
void ShiftLeft(const int shift_amount)
void AssignDecimalString(const Vector< const char > value)
static bool Equal(const Bignum &a, const Bignum &b)
static bool PlusLessEqual(const Bignum &a, const Bignum &b, const Bignum &c)
void MultiplyByPowerOfTen(const int exponent)
void AddUInt64(const uint64_t operand)
void AssignUInt64(uint64_t value)
uint16_t DivideModuloIntBignum(const Bignum &other)
static bool LessEqual(const Bignum &a, const Bignum &b)
static bool Less(const Bignum &a, const Bignum &b)
void AssignPowerUInt16(uint16_t base, const int exponent)
static bool PlusEqual(const Bignum &a, const Bignum &b, const Bignum &c)
void MultiplyByUInt32(const uint32_t factor)
void SubtractBignum(const Bignum &other)
static bool PlusLess(const Bignum &a, const Bignum &b, const Bignum &c)
void AssignUInt16(const uint16_t value)
void MultiplyByUInt64(const uint64_t factor)
void AddBignum(const Bignum &other)
void AssignHexString(const Vector< const char > value)
static int PlusCompare(const Bignum &a, const Bignum &b, const Bignum &c)
bool ToHexString(char *buffer, const int buffer_size) const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
#define DOUBLE_CONVERSION_UNREACHABLE()