1 /* Declarations describing the host machine and C compiler.
2 Copyright (C) 1995, 1996 Markus Armbruster
16 /** A size handled efficiently by malloc(), at least 1K. */
17 #define PREF_MALLOC_SIZE 2048
20 /** A wrapper around GNU C's __attribute__ */
22 /* According to the documentation, the attributes we are interested in
23 work with 2.5, but we encountered trouble before 2.7. */
24 #if defined (__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 7
25 # define HAVE_ATTRIBUTE 1
26 # define ATTRIBUTE(attrs) __attribute__ (attrs)
28 # define ATTRIBUTE(attrs)
34 /** A type that has most constrained alignment. */
39 } aligned_type ATTRIBUTE ((aligned));
41 /** Inquiring about the alignment of a type. */
43 # define ALIGNOF(type) __alignof__ (type)
45 # define ALIGNOF(type) offsetof (struct { char c; type d; }, d)
48 /** Maximal alignment required for any type. */
49 #define MAX_ALIGN ALIGNOF (aligned_type)