tkernel_2/include/sys/sysdepend/tef_em1d/str_align_depend.h | bare source | permlink (0.07 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T-Kernel 2.0 Software Package 4: * 5: * Copyright 2011 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17. 10: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/01. 11: * 12: *---------------------------------------------------------------------- 13: */ 14: 15: /* 16: * @(#)str_align_depend.h (sys/EM1-D512) 17: * 18: * Bit alignment definitions for structure 19: */ 20: 21: #ifndef __SYS_STR_ALIGN_DEPEND_H__ 22: #define __SYS_STR_ALIGN_DEPEND_H__ 23: 24: /* 32 bit alignment */ 25: #if BIGENDIAN 26: # define _pad_b(n) int :n; 27: # define _pad_l(n) 28: #else 29: # define _pad_b(n) 30: # define _pad_l(n) int :n; 31: #endif 32: 33: #define _align64 34: 35: #endif /* __SYS_STR_ALIGN_DEPEND_H__ */