Limits of Basic Types — Limits of Basic Types is a portable method of determining the limits of the standard types.
glib.lib
These macros provide a portable method to determine the limits of some of the
standard integer and floating point types.
#define G_MAXUINT16 ((guint16) 0xffff)
The maximum value which can be held in a guint16.
#define G_MININT32 ((gint32) 0x80000000)
The minimum value which can be held in a gint32.
#define G_MAXINT32 ((gint32) 0x7fffffff)
The maximum value which can be held in a gint32.
#define G_MAXUINT32 ((guint32) 0xffffffff)
The maximum value which can be held in a guint32.
#define G_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000))
The minimum value which can be held in a gint64.
#define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff)
The maximum value which can be held in a gint64.
#define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU)
The maximum value which can be held in a guint64.
#define G_MINFLOAT FLT_MIN
The minimum positive value which can be held in a gfloat.
If interested in the smallest value which can be held in a gfloat, use -G_MAX_FLOAT.
#define G_MINDOUBLE DBL_MIN
The minimum positive value which can be held in a gdouble.
If interested in the smallest value which can be held in a gdouble, use -G_MAXDOUBLE.
© 2005-2007 Nokia |