… | |
… | |
182 | ECB_HEADER_INLINE ecb_bool ecb_big_endian (void) ecb_const; |
182 | ECB_HEADER_INLINE ecb_bool ecb_big_endian (void) ecb_const; |
183 | ECB_HEADER_INLINE ecb_bool ecb_big_endian (void) { return ecb_byteorder_helper () == 0x11; }; |
183 | ECB_HEADER_INLINE ecb_bool ecb_big_endian (void) { return ecb_byteorder_helper () == 0x11; }; |
184 | ECB_HEADER_INLINE ecb_bool ecb_little_endian (void) ecb_const; |
184 | ECB_HEADER_INLINE ecb_bool ecb_little_endian (void) ecb_const; |
185 | ECB_HEADER_INLINE ecb_bool ecb_little_endian (void) { return ecb_byteorder_helper () == 0x44; }; |
185 | ECB_HEADER_INLINE ecb_bool ecb_little_endian (void) { return ecb_byteorder_helper () == 0x44; }; |
186 | |
186 | |
187 | #if ECB_GCC_VERSION(3,0)&&0 |
187 | #if ECB_GCC_VERSION(3,0) |
188 | # define ecb_mod(m,n) ((m) % (n) + ((m) % (n) < 0 ? (n) : 0)) |
188 | # define ecb_mod(m,n) ((m) % (n) + ((m) % (n) < 0 ? (n) : 0)) |
189 | #else |
189 | #else |
190 | # define ecb_mod(m,n) ((m) < 0 ? ((n) - 1 - ((-1 - (m)) % (n))) : ((m) % (n))) |
190 | # define ecb_mod(m,n) ((m) < 0 ? ((n) - 1 - ((-1 - (m)) % (n))) : ((m) % (n))) |
191 | #endif |
191 | #endif |
192 | |
192 | |