On Wed, 9 Nov 2016, Bernd Edlinger wrote: > Yes, but maybe introduce a test if the half-wide value fits? > > like: > > #define M_OK2(M, T) ((M) > sizeof(T) * CHAR_BIT / 2 - 1)
Something like that. -- Joseph S. Myers jos...@codesourcery.com
On Wed, 9 Nov 2016, Bernd Edlinger wrote: > Yes, but maybe introduce a test if the half-wide value fits? > > like: > > #define M_OK2(M, T) ((M) > sizeof(T) * CHAR_BIT / 2 - 1)
Something like that. -- Joseph S. Myers jos...@codesourcery.com