Back to index

nagios-plugins  1.4.16
Defines
intprops.h File Reference
#include <limits.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TYPE_IS_INTEGER(t)   ((t) 1.5 == 1)
#define TYPE_TWOS_COMPLEMENT(t)   ((t) ~ (t) 0 == (t) -1)
#define TYPE_ONES_COMPLEMENT(t)   ((t) ~ (t) 0 == 0)
#define TYPE_SIGNED_MAGNITUDE(t)   ((t) ~ (t) 0 < (t) -1)
#define TYPE_SIGNED(t)   (! ((t) 0 < (t) -1))
#define TYPE_MINIMUM(t)
#define TYPE_MAXIMUM(t)
#define signed_type_or_expr__(t)   1
#define INT_STRLEN_BOUND(t)
#define INT_BUFSIZE_BOUND(t)   (INT_STRLEN_BOUND (t) + 1)

Define Documentation

#define INT_BUFSIZE_BOUND (   t)    (INT_STRLEN_BOUND (t) + 1)

Definition at line 81 of file intprops.h.

#define INT_STRLEN_BOUND (   t)
Value:
((sizeof (t) * CHAR_BIT - signed_type_or_expr__ (t)) * 146 / 485 \
   + signed_type_or_expr__ (t) + 1)

Definition at line 75 of file intprops.h.

#define signed_type_or_expr__ (   t)    1

Definition at line 68 of file intprops.h.

#define TYPE_IS_INTEGER (   t)    ((t) 1.5 == 1)

Definition at line 31 of file intprops.h.

#define TYPE_MAXIMUM (   t)
Value:
((t) (! TYPE_SIGNED (t) \
        ? (t) -1 \
        : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))

Definition at line 54 of file intprops.h.

#define TYPE_MINIMUM (   t)
Value:
((t) (! TYPE_SIGNED (t) \
        ? (t) 0 \
        : TYPE_SIGNED_MAGNITUDE (t) \
        ? ~ (t) 0 \
        : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))

Definition at line 48 of file intprops.h.

#define TYPE_ONES_COMPLEMENT (   t)    ((t) ~ (t) 0 == 0)

Definition at line 38 of file intprops.h.

#define TYPE_SIGNED (   t)    (! ((t) 0 < (t) -1))

Definition at line 42 of file intprops.h.

#define TYPE_SIGNED_MAGNITUDE (   t)    ((t) ~ (t) 0 < (t) -1)

Definition at line 39 of file intprops.h.

#define TYPE_TWOS_COMPLEMENT (   t)    ((t) ~ (t) 0 == (t) -1)

Definition at line 37 of file intprops.h.