Macros | Typedefs | Functions
auxiliary.h File Reference

All the auxiliary stuff. More...

#include "libpolysconfig.h"
#include <sys/types.h>

Go to the source code of this file.

Macros

#define SI_INTEGER_VARIANT   2
 
#define SI_BIGINT_VARIANT   1
 
#define CHAR_BIT   (8)
 
#define BIT_SIZEOF_LONG   ((CHAR_BIT)*(SIZEOF_LONG))
 
#define FALSE   0
 
#define TRUE   1
 
#define NULL   (0)
 
#define NULLp   ((void*)NULL)
 
#define ABS(x)   ((x)<0?(-(x)):(x))
 
#define loop   for(;;)
 
#define NO_INLINE
 
#define HAVE_ASSUME
 
#define PDEBUG   0
 
#define KDEBUG   0
 
#define LDEBUG
 
#define RDEBUG
 
#define TEST
 
#define YYDEBUG   1
 
#define FORCE_INLINE   inline
 
#define DO_PRAGMA(x)   _Pragma (#x)
 
#define TODO(who, msg)   DO_PRAGMA(message ("TODO [for " #who "]: " #msg))
 
#define _GNUC_PREREQ(maj, min)   0
 
#define FORCE_INTERNAL
 
#define FORCE_DEPRECATED
 
#define BEGIN_CDECL   extern "C" {
 
#define END_CDECL   }
 

Typedefs

typedef long int64
 
typedef int BOOLEAN
 
typedef void * ADDRESS
 

Functions

static int si_max (const int a, const int b)
 
static int si_min (const int a, const int b)
 
static long si_max (const long a, const long b)
 
static unsigned long si_max (const unsigned long a, const unsigned long b)
 
static long si_min (const long a, const long b)
 
static unsigned long si_min (const unsigned long a, const unsigned long b)
 
template<typename A , typename B >
B cast_A_to_B (A a)
 
template<typename A >
void * cast_A_to_vptr (A a)
 
template<typename A >
A cast_vptr_to_A (void *p)
 

Detailed Description

All the auxiliary stuff.

ABSTRACT: we shall put here everything that does not have its own place.

Author
Oleksandr Motsak

Definition in file auxiliary.h.

Macro Definition Documentation

#define _GNUC_PREREQ (   maj,
  min 
)    0

Definition at line 401 of file auxiliary.h.

#define ABS (   x)    ((x)<0?(-(x)):(x))

Definition at line 157 of file auxiliary.h.

#define BEGIN_CDECL   extern "C" {

Definition at line 417 of file auxiliary.h.

#define BIT_SIZEOF_LONG   ((CHAR_BIT)*(SIZEOF_LONG))

Definition at line 124 of file auxiliary.h.

#define CHAR_BIT   (8)

Definition at line 119 of file auxiliary.h.

#define DO_PRAGMA (   x)    _Pragma (#x)

Definition at line 393 of file auxiliary.h.

#define END_CDECL   }

Definition at line 418 of file auxiliary.h.

#define FALSE   0

Definition at line 140 of file auxiliary.h.

#define FORCE_DEPRECATED

Definition at line 413 of file auxiliary.h.

#define FORCE_INLINE   inline

Definition at line 386 of file auxiliary.h.

#define FORCE_INTERNAL

Definition at line 407 of file auxiliary.h.

#define HAVE_ASSUME

Definition at line 204 of file auxiliary.h.

#define KDEBUG   0

Definition at line 355 of file auxiliary.h.

#define LDEBUG

Definition at line 358 of file auxiliary.h.

#define loop   for(;;)

Definition at line 163 of file auxiliary.h.

#define NO_INLINE

Definition at line 201 of file auxiliary.h.

#define NULL   (0)

Definition at line 148 of file auxiliary.h.

#define NULLp   ((void*)NULL)

Definition at line 152 of file auxiliary.h.

#define PDEBUG   0

Definition at line 227 of file auxiliary.h.

#define RDEBUG

Definition at line 361 of file auxiliary.h.

#define SI_BIGINT_VARIANT   1

Definition at line 79 of file auxiliary.h.

#define SI_INTEGER_VARIANT   2

Definition at line 75 of file auxiliary.h.

#define TEST

Definition at line 364 of file auxiliary.h.

#define TODO (   who,
  msg 
)    DO_PRAGMA(message ("TODO [for " #who "]: " #msg))

Definition at line 394 of file auxiliary.h.

#define TRUE   1

Definition at line 144 of file auxiliary.h.

#define YYDEBUG   1

Definition at line 367 of file auxiliary.h.

Typedef Documentation

typedef void* ADDRESS

Definition at line 161 of file auxiliary.h.

typedef int BOOLEAN

Definition at line 131 of file auxiliary.h.

typedef long int64

Definition at line 112 of file auxiliary.h.

Function Documentation

template<typename A , typename B >
B cast_A_to_B ( A  a)
inline

Definition at line 429 of file auxiliary.h.

430 {
431  union
432  {
433  A a;
434  B b;
435  } u;
436 
437  u.a = a;
438  return u.b;
439 }
const poly a
Definition: syzextra.cc:212
#define A
Definition: sirandom.c:23
b *CanonicalForm B
Definition: facBivar.cc:51
const poly b
Definition: syzextra.cc:213
template<typename A >
void* cast_A_to_vptr ( A  a)
inline

Definition at line 442 of file auxiliary.h.

443 {
444  return cast_A_to_B<A, void*>(a);
445 }
const poly a
Definition: syzextra.cc:212
template<typename A >
A cast_vptr_to_A ( void *  p)
inline

Definition at line 449 of file auxiliary.h.

450 {
451  return cast_A_to_B<void*, A>(p);
452 }
return P p
Definition: myNF.cc:203
static int si_max ( const int  a,
const int  b 
)
inlinestatic

Definition at line 166 of file auxiliary.h.

166 { return (a>b) ? a : b; }
const poly a
Definition: syzextra.cc:212
const poly b
Definition: syzextra.cc:213
static long si_max ( const long  a,
const long  b 
)
inlinestatic

Definition at line 168 of file auxiliary.h.

168 { return (a>b) ? a : b; }
const poly a
Definition: syzextra.cc:212
const poly b
Definition: syzextra.cc:213
static unsigned long si_max ( const unsigned long  a,
const unsigned long  b 
)
inlinestatic

Definition at line 169 of file auxiliary.h.

169 { return (a>b) ? a : b; }
const poly a
Definition: syzextra.cc:212
const poly b
Definition: syzextra.cc:213
static int si_min ( const int  a,
const int  b 
)
inlinestatic

Definition at line 167 of file auxiliary.h.

167 { return (a<b) ? a : b; }
const poly a
Definition: syzextra.cc:212
const poly b
Definition: syzextra.cc:213
static long si_min ( const long  a,
const long  b 
)
inlinestatic

Definition at line 170 of file auxiliary.h.

170 { return (a<b) ? a : b; }
const poly a
Definition: syzextra.cc:212
const poly b
Definition: syzextra.cc:213
static unsigned long si_min ( const unsigned long  a,
const unsigned long  b 
)
inlinestatic

Definition at line 171 of file auxiliary.h.

171 { return (a<b) ? a : b; }
const poly a
Definition: syzextra.cc:212
const poly b
Definition: syzextra.cc:213