Function: byteorder

byteorder is a function defined in data.c.

Signature

(byteorder)

Documentation

Return the byteorder for the machine.

Returns 66 (ASCII uppercase B) for big endian machines or 108 (ASCII lowercase l) for small endian machines.

Source Code

// Defined in /usr/src/emacs/src/data.c
{
  unsigned i = 0x04030201;
  int order = *(char *)&i == 1 ? 108 : 66;

  return make_fixnum (order);
}