Is evalpoly what you’re looking for?
julia> x = 0x0284
0x0284
julia> bit_vector = digits(x, base=2, pad=16)
16-element Vector{Int64}:
0
0
1
0
0
0
0
1
0
1
0
0
0
0
0
0
julia> evalpoly(2, bit_vector) == x
true
Is evalpoly what you’re looking for?
julia> x = 0x0284
0x0284
julia> bit_vector = digits(x, base=2, pad=16)
16-element Vector{Int64}:
0
0
1
0
0
0
0
1
0
1
0
0
0
0
0
0
julia> evalpoly(2, bit_vector) == x
true