ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.h
(Generate patch)

Comparing libecb/ecb.h (file contents):
Revision 1.20 by root, Thu May 26 19:21:42 2011 UTC vs.
Revision 1.21 by root, Thu May 26 19:23:53 2011 UTC

178ECB_HEADER_INLINE ecb_bool ecb_big_endian () ecb_const; 178ECB_HEADER_INLINE ecb_bool ecb_big_endian () ecb_const;
179ECB_HEADER_INLINE ecb_bool ecb_big_endian () { return ecb_byteorder_helper () == 0x11; }; 179ECB_HEADER_INLINE ecb_bool ecb_big_endian () { return ecb_byteorder_helper () == 0x11; };
180ECB_HEADER_INLINE ecb_bool ecb_little_endian () ecb_const; 180ECB_HEADER_INLINE ecb_bool ecb_little_endian () ecb_const;
181ECB_HEADER_INLINE ecb_bool ecb_little_endian () { return ecb_byteorder_helper () == 0x44; }; 181ECB_HEADER_INLINE ecb_bool ecb_little_endian () { return ecb_byteorder_helper () == 0x44; };
182 182
183#define ecb_mod(m, n) ((m) < 0 ? ((n) - (-(m) % (n))) : ((m) % (n)))
184
183#if ecb_cplusplus_does_not_suck 185#if ecb_cplusplus_does_not_suck
184// does not work for local types (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm) 186// does not work for local types (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm)
185template<typename T, int N> 187template<typename T, int N>
186static inline int ecb_array_length (const T (&arr)[N]) 188static inline int ecb_array_length (const T (&arr)[N])
187{ 189{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines