Last change
on this file since 57 was
52,
checked in by meunier, 12 years ago
|
Code formatting in all source files.
|
File size:
973 bytes
|
Rev | Line | |
---|
[1] | 1 | /*------------------------------------------------------------\ |
---|
| 2 | | | |
---|
| 3 | | Tool : systemcass | |
---|
| 4 | | | |
---|
| 5 | | File : data_field.h | |
---|
| 6 | | | |
---|
| 7 | | Author : Buchmann Richard | |
---|
| 8 | | | |
---|
| 9 | | Date : 03_05_2006 | |
---|
| 10 | | | |
---|
| 11 | \------------------------------------------------------------*/ |
---|
| 12 | #ifndef __DATA_FIELD_H__ |
---|
| 13 | #define __DATA_FIELD_H__ |
---|
| 14 | |
---|
[52] | 15 | template <int WIDTH, int PADDING, typename data_type> |
---|
[27] | 16 | struct val_field { |
---|
[1] | 17 | data_type valW:WIDTH; |
---|
| 18 | }; |
---|
| 19 | |
---|
[52] | 20 | template <int WIDTH, typename data_type> |
---|
| 21 | struct val_field<WIDTH, 0, data_type> { |
---|
[1] | 22 | data_type valW:WIDTH; |
---|
| 23 | }; |
---|
| 24 | |
---|
| 25 | #endif |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.