Re: Problem with Excel import on ARM



Gnumeric runs fine of Sparc so big-endian machines are handled.  That
is not to say that there might not be a screw-up somewhere.

I cannot actually load your sheet, so I cannot see what is in it.
(HTTP request sent, awaiting response... 403 Forbidden)

It would be useful to see what kind of byte layout is being used
for doubles.  Please do something like this:

#include <math.h>
#include <stdio.h>
int main ()
{
  double x = M_PI;
  const unsigned char *p = (const unsigned char *)&x;
  int i;
  for (i = 0; i < sizeof (x); i++)
    printf ("%02x ", *p++);
  printf ("\n");
  return 0;
}

I get...

sparc> ./a.out 
40 09 21 fb 54 44 2d 18 

x86> ./a.out
18 2d 44 54 fb 21 09 40 

Please let me know what you get...  If you don't get anything like the
above, perhaps you know of a reference that tells the layout of doubles
on ARM?

Morten



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]