Convert to and from Int24

There is an example in test/intrinsics.jl:

primitive type Int24 24 end
Int24(x::Int) = Core.Intrinsics.trunc_int(Int24, x)
Int(x::Int24) = Core.Intrinsics.zext_int(Int, x)

which actually solves my problem, but it may not be general enough to add to the manual.

2 Likes