Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[patch] allow propagation of Sys.big_endian in native code #5769
Original bug ID: 5769
When writing machine specific code like
let read_int32_little_endian v n =
It would be prettier to know that the compiler cleans the test rather than having to use a preprocessor for that.
The patch provided add a primitive %big_endian of type unit -> bool that calls a C stub in byte code and is simplified in native code