[erlang-questions] OTP float error on ARM
Bjorn Gustavsson
bgustavsson@REDACTED
Thu Oct 16 10:02:28 CEST 2008
On Thu, Oct 16, 2008 at 8:51 AM, Bob Ippolito <bob@REDACTED> wrote:
> On Wed, Oct 15, 2008 at 11:28 PM, Bjorn Gustavsson
> <bgustavsson@REDACTED> wrote:
> > Thu, Oct 16, 2008 at 7:40 AM, Bob Ippolito <bob@REDACTED> 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
> want
> > 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.
/Bjorn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081016/388eded0/attachment.htm>
More information about the erlang-questions
mailing list