Commit 6ad94cd9 by Alan Mishchenko

Making changes suggested by Mark Jarvin.

parent 232fe09e
...@@ -364,7 +364,7 @@ typedef int (*DD_QSFP)(const void *, const void *); ...@@ -364,7 +364,7 @@ typedef int (*DD_QSFP)(const void *, const void *);
SeeAlso [Cudd_NotCond] SeeAlso [Cudd_NotCond]
******************************************************************************/ ******************************************************************************/
#define Cudd_Not(node) ((DdNode *)((long)(node) ^ 01)) #define Cudd_Not(node) ((DdNode *)((ptrint)(node) ^ 01))
/**Macro*********************************************************************** /**Macro***********************************************************************
...@@ -380,7 +380,7 @@ typedef int (*DD_QSFP)(const void *, const void *); ...@@ -380,7 +380,7 @@ typedef int (*DD_QSFP)(const void *, const void *);
SeeAlso [Cudd_Not] SeeAlso [Cudd_Not]
******************************************************************************/ ******************************************************************************/
#define Cudd_NotCond(node,c) ((DdNode *)((long)(node) ^ (c))) #define Cudd_NotCond(node,c) ((DdNode *)((ptrint)(node) ^ (c)))
/**Macro*********************************************************************** /**Macro***********************************************************************
...@@ -394,7 +394,7 @@ typedef int (*DD_QSFP)(const void *, const void *); ...@@ -394,7 +394,7 @@ typedef int (*DD_QSFP)(const void *, const void *);
SeeAlso [Cudd_Complement Cudd_IsComplement] SeeAlso [Cudd_Complement Cudd_IsComplement]
******************************************************************************/ ******************************************************************************/
#define Cudd_Regular(node) ((DdNode *)((unsigned long)(node) & ~01)) #define Cudd_Regular(node) ((DdNode *)((ptruint)(node) & ~01))
/**Macro*********************************************************************** /**Macro***********************************************************************
...@@ -408,7 +408,7 @@ typedef int (*DD_QSFP)(const void *, const void *); ...@@ -408,7 +408,7 @@ typedef int (*DD_QSFP)(const void *, const void *);
SeeAlso [Cudd_Regular Cudd_IsComplement] SeeAlso [Cudd_Regular Cudd_IsComplement]
******************************************************************************/ ******************************************************************************/
#define Cudd_Complement(node) ((DdNode *)((unsigned long)(node) | 01)) #define Cudd_Complement(node) ((DdNode *)((ptruint)(node) | 01))
/**Macro*********************************************************************** /**Macro***********************************************************************
...@@ -422,7 +422,7 @@ typedef int (*DD_QSFP)(const void *, const void *); ...@@ -422,7 +422,7 @@ typedef int (*DD_QSFP)(const void *, const void *);
SeeAlso [Cudd_Regular Cudd_Complement] SeeAlso [Cudd_Regular Cudd_Complement]
******************************************************************************/ ******************************************************************************/
#define Cudd_IsComplement(node) ((int) ((long) (node) & 01)) #define Cudd_IsComplement(node) ((int) ((ptrint) (node) & 01))
/**Macro*********************************************************************** /**Macro***********************************************************************
......
...@@ -247,6 +247,7 @@ typedef struct DdHook { /* hook list element */ ...@@ -247,6 +247,7 @@ typedef struct DdHook { /* hook list element */
struct DdHook *next; /* next element in the list */ struct DdHook *next; /* next element in the list */
} DdHook; } DdHook;
/*
#if SIZEOF_VOID_P == 8 && SIZEOF_INT == 4 #if SIZEOF_VOID_P == 8 && SIZEOF_INT == 4
typedef long ptrint; typedef long ptrint;
typedef unsigned long ptruint; typedef unsigned long ptruint;
...@@ -254,6 +255,10 @@ typedef unsigned long ptruint; ...@@ -254,6 +255,10 @@ typedef unsigned long ptruint;
typedef int ptrint; typedef int ptrint;
typedef unsigned int ptruint; typedef unsigned int ptruint;
#endif #endif
*/
typedef ABC_PTRINT_T ptrint;
typedef ABC_PTRUINT_T ptruint;
#ifdef __osf__ #ifdef __osf__
#pragma pointer_size save #pragma pointer_size save
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment