*** empty log message ***
This commit is contained in:
parent
dbe61e1ac9
commit
711da6827d
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: macros.h,v 1.14 2005-03-30 07:26:38 bacon Exp $
|
* $Id: macros.h,v 1.15 2005-03-30 10:21:33 bacon Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _XP_MACROS_H_
|
#ifndef _XP_MACROS_H_
|
||||||
@ -26,9 +26,9 @@
|
|||||||
|
|
||||||
#define XP_TYPE_IS_SIGNED(type) (!(((type)0) < ((type)-1)))
|
#define XP_TYPE_IS_SIGNED(type) (!(((type)0) < ((type)-1)))
|
||||||
#define XP_TYPE_MAX(type) \
|
#define XP_TYPE_MAX(type) \
|
||||||
((type)(XP_TYPE_IS_SIGNED(type)? ~((type)1 << (xp_sizeof(type) * 8 - 1)): (~(type)0)))
|
((XP_TYPE_IS_SIGNED(type)? (type)~((type)1 << (xp_sizeof(type) * 8 - 1)): (type)(~(type)0)))
|
||||||
#define XP_TYPE_MIN(type) \
|
#define XP_TYPE_MIN(type) \
|
||||||
((type)(XP_TYPE_IS_SIGNED(type)? ((type)1 << (xp_sizeof(type) * 8 - 1)): ((type)0)))
|
((XP_TYPE_IS_SIGNED(type)? (type)((type)1 << (xp_sizeof(type) * 8 - 1)): (type)0))
|
||||||
|
|
||||||
#define XP_LOOP_CONTINUE(id) goto __loop_ ## id ## _begin__;
|
#define XP_LOOP_CONTINUE(id) goto __loop_ ## id ## _begin__;
|
||||||
#define XP_LOOP_BREAK(id) goto __loop_ ## id ## _end__;
|
#define XP_LOOP_BREAK(id) goto __loop_ ## id ## _end__;
|
||||||
|
Loading…
Reference in New Issue
Block a user