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 SSI_BASE   16
 
#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

§ _GNUC_PREREQ

#define _GNUC_PREREQ (   maj,
  min 
)    0

Definition at line 346 of file auxiliary.h.

§ ABS

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

Definition at line 114 of file auxiliary.h.

§ BEGIN_CDECL

#define BEGIN_CDECL   extern "C" {

Definition at line 362 of file auxiliary.h.

§ BIT_SIZEOF_LONG

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

Definition at line 81 of file auxiliary.h.

§ CHAR_BIT

#define CHAR_BIT   (8)

Definition at line 76 of file auxiliary.h.

§ DO_PRAGMA

#define DO_PRAGMA (   x)    _Pragma (#x)

Definition at line 338 of file auxiliary.h.

§ END_CDECL

#define END_CDECL   }

Definition at line 363 of file auxiliary.h.

§ FALSE

#define FALSE   0

Definition at line 97 of file auxiliary.h.

§ FORCE_DEPRECATED

#define FORCE_DEPRECATED

Definition at line 358 of file auxiliary.h.

§ FORCE_INLINE

#define FORCE_INLINE   inline

Definition at line 331 of file auxiliary.h.

§ FORCE_INTERNAL

#define FORCE_INTERNAL

Definition at line 352 of file auxiliary.h.

§ HAVE_ASSUME

#define HAVE_ASSUME

Definition at line 149 of file auxiliary.h.

§ KDEBUG

#define KDEBUG   0

Definition at line 300 of file auxiliary.h.

§ LDEBUG

#define LDEBUG

Definition at line 303 of file auxiliary.h.

§ loop

#define loop   for(;;)

Definition at line 120 of file auxiliary.h.

§ NO_INLINE

#define NO_INLINE

Definition at line 146 of file auxiliary.h.

§ NULL

#define NULL   (0)

Definition at line 105 of file auxiliary.h.

§ NULLp

#define NULLp   ((void*)NULL)

Definition at line 109 of file auxiliary.h.

§ PDEBUG

#define PDEBUG   0

Definition at line 172 of file auxiliary.h.

§ RDEBUG

#define RDEBUG

Definition at line 306 of file auxiliary.h.

§ SI_BIGINT_VARIANT

#define SI_BIGINT_VARIANT   1

Definition at line 36 of file auxiliary.h.

§ SI_INTEGER_VARIANT

#define SI_INTEGER_VARIANT   2

Definition at line 32 of file auxiliary.h.

§ SSI_BASE

#define SSI_BASE   16

Definition at line 134 of file auxiliary.h.

§ TEST

#define TEST

Definition at line 309 of file auxiliary.h.

§ TODO

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

Definition at line 339 of file auxiliary.h.

§ TRUE

#define TRUE   1

Definition at line 101 of file auxiliary.h.

§ YYDEBUG

#define YYDEBUG   1

Definition at line 312 of file auxiliary.h.

Typedef Documentation

§ ADDRESS

typedef void* ADDRESS

Definition at line 118 of file auxiliary.h.

§ BOOLEAN

typedef int BOOLEAN

Definition at line 88 of file auxiliary.h.

§ int64

typedef long int64

Definition at line 69 of file auxiliary.h.

Function Documentation

§ cast_A_to_B()

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

Definition at line 374 of file auxiliary.h.

375 {
376  union
377  {
378  A a;
379  B b;
380  } u;
381 
382  u.a = a;
383  return u.b;
384 }
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

§ cast_A_to_vptr()

template<typename A >
void* cast_A_to_vptr ( A  a)
inline

Definition at line 387 of file auxiliary.h.

388 {
389  return cast_A_to_B<A, void*>(a);
390 }
const poly a
Definition: syzextra.cc:212

§ cast_vptr_to_A()

template<typename A >
A cast_vptr_to_A ( void *  p)
inline

Definition at line 394 of file auxiliary.h.

395 {
396  return cast_A_to_B<void*, A>(p);
397 }
return P p
Definition: myNF.cc:203

§ si_max() [1/3]

static int si_max ( const int  a,
const int  b 
)
inlinestatic

Definition at line 123 of file auxiliary.h.

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

§ si_max() [2/3]

static long si_max ( const long  a,
const long  b 
)
inlinestatic

Definition at line 125 of file auxiliary.h.

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

§ si_max() [3/3]

static unsigned long si_max ( const unsigned long  a,
const unsigned long  b 
)
inlinestatic

Definition at line 126 of file auxiliary.h.

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

§ si_min() [1/3]

static int si_min ( const int  a,
const int  b 
)
inlinestatic

Definition at line 124 of file auxiliary.h.

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

§ si_min() [2/3]

static long si_min ( const long  a,
const long  b 
)
inlinestatic

Definition at line 127 of file auxiliary.h.

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

§ si_min() [3/3]

static unsigned long si_min ( const unsigned long  a,
const unsigned long  b 
)
inlinestatic

Definition at line 128 of file auxiliary.h.

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