We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ff84e commit 6cd6c4eCopy full SHA for 6cd6c4e
1 file changed
ext/RDKitExt.jl
@@ -22,10 +22,13 @@ using RDKitMinimalLib:
22
23
24
function uint8vec_to_bitarray(uvec::Vector{UInt8})
25
+ # Note: fp_as_bytes functions are LSB-first
26
bits = BitVector(undef, 8 * length(uvec))
27
for (i, byte) in enumerate(uvec)
28
for j in 1:8
- bits[8*(i-1) + j] = (byte >> (8 - j)) & 0x01
29
+ # bits[8*(i-1) + j] = (byte >> (8 - j)) & 0x01
30
+ # bit reversal
31
+ bits[8*(i-1) + (9 - j)] = (byte >> (8 - j)) & 0x01
32
end
33
34
return bits
0 commit comments