Changeset 8 for branches/with_autoconf/src/data_field.h
- Timestamp:
- Jun 25, 2008, 1:08:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/with_autoconf/src/data_field.h
r1 r8 13 13 #define __DATA_FIELD_H__ 14 14 15 #include <endianness.h>16 17 15 template<int WIDTH, 18 16 int PADDING, 19 17 typename data_type> 20 struct val_field { /* try to work with little endianess */ 21 #if defined(little_endian) 22 /* little endian */ 23 // data_type pad:PADDING; 18 struct val_field { 24 19 data_type valW:WIDTH; 25 #elif defined(big_endian)26 /* big endian */27 data_type pad:PADDING;28 data_type valW:WIDTH;29 #else30 #error You must define endianness.31 #endif32 20 }; 33 21
Note: See TracChangeset
for help on using the changeset viewer.