about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
blob: 121b4fe8c96b05d651328b128664e745b04ab709 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Determine the wordsize from the preprocessor defines.  */

#if defined __arch64__ || defined __sparcv9
# define __WORDSIZE	64
# define __WORDSIZE_TIME64_COMPAT32	1
#else
# define __WORDSIZE	32
# define __WORDSIZE32_SIZE_ULONG	0
# define __WORDSIZE32_PTRDIFF_LONG	0
# define __WORDSIZE_TIME64_COMPAT32	0
#endif

#if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL

# if __WORDSIZE == 32
/* Signal that in 32bit ABI we didn't used to have a `long double'.
   The changes all the `long double' function variants to be redirects
   to the double functions.  */
#  define __LONG_DOUBLE_MATH_OPTIONAL   1
#  ifndef __LONG_DOUBLE_128__
#   define __NO_LONG_DOUBLE_MATH        1
#  endif
# endif
#endif