Archive for February, 2008

Fedora Core 8 Mirror List

Posted in Linux with tags on February 26, 2008 by aghoras

The yum repositories for Fedora Core 8 (FC8) are installed via the fedora-release-8-5.noarch.rpm package. The package itself can be downloaded from any of the sites listed at http://mirrors.fedoraproject.org/publiclist.

Big Endian Little Endian bit fields

Posted in Programming on February 21, 2008 by aghoras

For big endian machines (e.g. Motorola) :

typedef union{
   struct{
      uint32_t MSB       :1;
      .
      .
      .
      uint32_t LSB       :1;
   }_bit;
   uint32_t _word
} typename_t;

For little endian machines (e.g. Intel):

typedef union{
   struct{
      uint32_t LSB       :1;
      .
      .
      .
      uint32_t MSB       :1;
   }_bit;
   uint32_t _word
} typename_t;