I am want to try an Int24 type, purely for storage. It is easy to declare one with
primitive type Int24 <: Signed 24 end
but I am not sure how to access its value.
I only need conversion to and from Int32, but I don’t think I can use reinterpret because they don’t have the same number of bits. How can I convert to and from Int32?
(BTW, I am aware that I destroy alignment and it will degrade performance; it is an experiment)
It would be interesting to see how well LLVM supports this these days. Once upon a time, “strange” bit sizes were very poorly supported but it may have gotten better.