source: sources/src/data_field.h

Last change on this file was 52, checked in by meunier, 11 years ago

Code formatting in all source files.

File size: 973 bytes
Line 
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
15template <int WIDTH, int PADDING, typename data_type>
16struct val_field {
17  data_type valW:WIDTH;
18};
19
20template <int WIDTH, typename data_type>
21struct val_field<WIDTH, 0, data_type> {
22  data_type valW:WIDTH;
23};
24
25#endif
26
Note: See TracBrowser for help on using the repository browser.