Fix IntInBnd and MAX_ABS_INT for 64 bit machines
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@105 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
efd998524f
commit
b076d42858
@ -10,7 +10,7 @@
|
|||||||
* File: Yap.h.m4 *
|
* File: Yap.h.m4 *
|
||||||
* mods: *
|
* mods: *
|
||||||
* comments: main header file for YAP *
|
* comments: main header file for YAP *
|
||||||
* version: $Id: Yap.h.m4,v 1.6 2001-06-27 13:22:30 vsc Exp $ *
|
* version: $Id: Yap.h.m4,v 1.7 2001-06-27 15:00:10 vsc Exp $ *
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -639,8 +639,8 @@ Inline(IsIntTerm, int, Term, t, CHKTAG((t), NumberTag))
|
|||||||
#ifdef TAGS_FAST_OPS
|
#ifdef TAGS_FAST_OPS
|
||||||
#define IntInBnd(X) (Unsigned( ( (Int)(X) >> (32-7) ) + 1) <= 1)
|
#define IntInBnd(X) (Unsigned( ( (Int)(X) >> (32-7) ) + 1) <= 1)
|
||||||
#else
|
#else
|
||||||
#define IntInBnd(X) ( (X) < (MAX_ABS_INT) && \
|
#define IntInBnd(X) ( (X) < MAX_ABS_INT && \
|
||||||
(X) > (-MAX_ABS_INT)-1 )
|
(X) > -MAX_ABS_INT-1L )
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef C_PROLOG
|
#ifdef C_PROLOG
|
||||||
|
Reference in New Issue
Block a user