OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_70/] [or1ksim/] [peripheral/] [fb.c] - Diff between revs 997 and 1244

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 997 Rev 1244
Line 84... Line 84...
  }
  }
}
}
 
 
/* define these also for big endian */
/* define these also for big endian */
#if __BIG_ENDIAN__
#if __BIG_ENDIAN__
#define CNV32(x) (x) (\
#define CNV32(x) (\
     ((((x) >> 24) & 0xff) << 0)\
     ((((x) >> 24) & 0xff) << 0)\
   | ((((x) >> 16) & 0xff) << 8)\
   | ((((x) >> 16) & 0xff) << 8)\
   | ((((x) >> 8) & 0xff) << 16)\
   | ((((x) >> 8) & 0xff) << 16)\
   | ((((x) >> 0) & 0xff) << 24))
   | ((((x) >> 0) & 0xff) << 24))
#define CNV16(x) (x) (\
#define CNV16(x) (\
   | ((((x) >> 8) & 0xff) << 0)\
     ((((x) >> 8) & 0xff) << 0)\
   | ((((x) >> 0) & 0xff) << 8))
   | ((((x) >> 0) & 0xff) << 8))
#else
#else
#define CNV16(x) (x)
#define CNV16(x) (x)
#define CNV32(x) (x)
#define CNV32(x) (x)
#endif
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.