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