Commit 291d80b 1 parent c285337 commit 291d80b Copy full SHA for 291d80b
File tree 4 files changed +6
-6
lines changed
core/src/main/scala/io/bullet/borer
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- version = 3.7 . 14
1
+ version = 3.8 . 6
2
2
3
3
align.preset = more
4
4
assumeStandardLibraryStripMargin = true
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ object AdtEncodingStrategy:
202
202
case DataItem .Break | DataItem .EndOfInput => failNoTypeId()
203
203
204
204
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
206
206
rec(remaining - 1 , mapSize) // and recurse
207
207
else failNoTypeId()
208
208
Original file line number Diff line number Diff line change @@ -70,5 +70,5 @@ object Float16:
70
70
else
71
71
val rounded2 = lfbits >>> 23 ; // tmp exp for subnormal calc
72
72
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
Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ private[borer] object Util:
94
94
// Float has 23 mantissa bits, Float16 has only 10
95
95
// so the 13 lower bits of the mantissa must be zero
96
96
(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
98
98
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
100
100
(normalizedExp >> 4 ) == (normalizedExp >> 31 ) // does normalizedExp fit into 5 bits?
101
101
}
102
102
}
You can’t perform that action at this time.
0 commit comments