Skip to content

Commit

Permalink
Remove unnecessary logical AND operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 12, 2024
1 parent 1e270e2 commit d075927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/async/vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func uint64fromTwoFloat32(a, b float32) uint64 {
}

func twoFloat32FromUint64(combined uint64) (float32, float32) {
x := uint32(combined & 0x00000000FFFFFFFF)
y := uint32(combined & 0xFFFFFFFF00000000 >> 32)
x := uint32(combined)
y := uint32(combined >> 32)
return math.Float32frombits(x), math.Float32frombits(y)
}

0 comments on commit d075927

Please sign in to comment.