Open benrimmington opened 4 months ago
Thoughts anyone? Do I need to try and write a fix?
We can increase the maximum bitWidth
to 32767 (on 16-bit AVR) if we don't need to reserve space for other flags.
#if UINTPTR_MAX >= UINT32_MAX
// Save some space for other flags.
BitWidthShift = 8,
#else
BitWidthShift = 1,
#endif
Builtin.IntLiteral
for 16-bit AVR has a maximumbitWidth
of 255, unless theIntegerLiteralFlags::BitWidthShift
is changed.ConstantIntegerLiteralMap::get()
will build theflags
word, without checking if thebitWidth
was truncated.(
StaticBigInt
isn't part of the embedded Swift stdlib.)Cc: @carlos4242 @kubamracek @phausler @rauhul