[erlang-questions] OTP float error on ARM
Thu Oct 16 10:02:28 CEST 2008
On Thu, Oct 16, 2008 at 8:51 AM, Bob Ippolito <> wrote:
> On Wed, Oct 15, 2008 at 11:28 PM, Bjorn Gustavsson
> <> wrote:
> > Thu, Oct 16, 2008 at 7:40 AM, Bob Ippolito <> wrote:
> >> Well, the float type in Erlang binaries by itself is big endian, not
> >> native endian. This is a bug in Erlang.
> > This is not a bug. The default for numeric types is big endian. If you
> > native endian, you must say so:
> > <<F/native-float>>
> No, this is a bug. <<F/float>> on his platform is not returning big endian.
Sorry, I misunderstood you.
In that case, WORDS_BIGENDIAN in config.h seems to be wrong. It should be
defined if the
processor is big endian (like Sparc), and undefined otherwise.
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions