diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..6150e2e6 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.9.3 +ba91ed08b8a34266f03b1061036db5644bbbcf47 diff --git a/.scalafmt.conf b/.scalafmt.conf index 4b1d4766..bacfe013 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.8.6 +version = 3.9.3 align.preset = more assumeStandardLibraryStripMargin = true diff --git a/core/src/main/scala/io/bullet/borer/Float16.scala b/core/src/main/scala/io/bullet/borer/Float16.scala index abfe4387..5034949a 100644 --- a/core/src/main/scala/io/bullet/borer/Float16.scala +++ b/core/src/main/scala/io/bullet/borer/Float16.scala @@ -40,10 +40,10 @@ object Float16: else if (mant != 0) // && exp==0 -> subnormal exp = 0x1C400 // make it normal while ({ - mant <<= 1 // mantissa * 2 - exp -= 0x400 // decrease exp by 1 - (mant & 0x400) == 0 // while not normal - }) {} + mant <<= 1 // mantissa * 2 + exp -= 0x400 // decrease exp by 1 + (mant & 0x400) == 0 // while not normal + }) {} mant &= 0x3FF // discard subnormal bit java.lang.Float.intBitsToFloat((hbits & 0x8000) << 16 | (exp | mant) << 13)