Skip to content

Commit 291d80b

Browse files
committed
Update scalafmt and reformat all
1 parent c285337 commit 291d80b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.7.14
1+
version = 3.8.6
22

33
align.preset = more
44
assumeStandardLibraryStripMargin = true

core/src/main/scala/io/bullet/borer/AdtEncodingStrategy.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ object AdtEncodingStrategy:
202202
case DataItem.Break | DataItem.EndOfInput => failNoTypeId()
203203

204204
case _ => // the map entry is not the type id,
205-
stash.appendElementFrom(r) // so read and stash the map entry value
205+
stash.appendElementFrom(r) // so read and stash the map entry value
206206
rec(remaining - 1, mapSize) // and recurse
207207
else failNoTypeId()
208208

core/src/main/scala/io/bullet/borer/Float16.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ object Float16:
7070
else
7171
val rounded2 = lfbits >>> 23; // tmp exp for subnormal calc
7272
sign | ((fbits & 0x7FFFFF | 0x800000) + // add subnormal bit
73-
(0x800000 >>> rounded2 - 102) >>> // round depending on cut off
74-
126 - rounded2) // div by 2^(1-(exp-127+15)) and >> 13 | exp=0
73+
(0x800000 >>> rounded2 - 102) >>> // round depending on cut off
74+
126 - rounded2) // div by 2^(1-(exp-127+15)) and >> 13 | exp=0

core/src/main/scala/io/bullet/borer/internal/Util.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ private[borer] object Util:
9494
// Float has 23 mantissa bits, Float16 has only 10
9595
// so the 13 lower bits of the mantissa must be zero
9696
(bits & ((1 << 13) - 1)) == 0 && { // are the 13 lower bits of the mantissa zero?
97-
val exp = (bits << 1) >>> 24 // move out sign bit and get 8 bit exponent
97+
val exp = (bits << 1) >>> 24 // move out sign bit and get 8 bit exponent
9898
exp == 0 || exp == 0xFF || { // is exp a special value?
99-
val normalizedExp = exp - 127 // reverse exponent bias
99+
val normalizedExp = exp - 127 // reverse exponent bias
100100
(normalizedExp >> 4) == (normalizedExp >> 31) // does normalizedExp fit into 5 bits?
101101
}
102102
}

0 commit comments

Comments
 (0)