presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
esac
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
-$as_echo_n "checking for inline... " >&6; }
-if ${ac_cv_c_inline+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_cv_c_inline=no
-for ac_kw in inline __inline__ __inline; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#ifndef __cplusplus
-typedef int foo_t;
-static $ac_kw foo_t static_foo () {return 0; }
-$ac_kw foo_t foo () {return 0; }
-#endif
-
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_inline=$ac_kw
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- test "$ac_cv_c_inline" != no && break
-done
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
-$as_echo "$ac_cv_c_inline" >&6; }
-
-case $ac_cv_c_inline in
- inline | yes) ;;
- *)
- case $ac_cv_c_inline in
- no) ac_val=;;
- *) ac_val=$ac_cv_c_inline;;
- esac
- cat >>confdefs.h <<_ACEOF
-#ifndef __cplusplus
-#define inline $ac_val
-#endif
-_ACEOF
- ;;
-esac
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C printf format archetype" >&5
$as_echo_n "checking for C printf format archetype... " >&6; }
if ${pgac_cv_printf_archetype+:} false; then :
m4_defun([AC_PROG_CC_STDC], []) dnl We don't want that.
AC_C_BIGENDIAN
-AC_C_INLINE
PGAC_PRINTF_ARCHETYPE
PGAC_CXX_PRINTF_ARCHETYPE
PGAC_C_STATEMENT_EXPRESSIONS
/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES
-/* Define to `__inline__' or `__inline' if that's what the C compiler
- calls it, or to nothing if 'inline' is not supported under any name. */
-#ifndef __cplusplus
-#undef inline
-#endif
-
/* Define to keyword to use for C99 restrict support, or to nothing if not
supported */
#undef pg_restrict
*/
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
#define PG_HAVE_SPIN_DELAY
-static __inline__ void
+static inline void
pg_spin_delay_impl(void)
{
__asm__ __volatile__(" rep; nop \n");
#define TAS(lock) tas(lock)
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
slock_t _res = 1;
#define SPIN_DELAY() spin_delay()
-static __inline__ void
+static inline void
spin_delay(void)
{
/*
*/
#define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock))
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
slock_t _res = 1;
#define SPIN_DELAY() spin_delay()
-static __inline__ void
+static inline void
spin_delay(void)
{
/*
typedef int slock_t;
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
return __sync_lock_test_and_set(lock, 1);
#define SPIN_DELAY() spin_delay()
-static __inline__ void
+static inline void
spin_delay(void)
{
/*
#define TAS(lock) tas(lock)
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
int _res = 0;
#define TAS(lock) tas(lock)
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
slock_t _res;
* But if the spinlock is in ordinary memory, we can use lwsync instead for
* better performance.
*/
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
slock_t _t;
#define MIPS_SET_MIPS2
#endif
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
volatile slock_t *_l = lock;
typedef int slock_t;
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
return __sync_lock_test_and_set(lock, 1);
typedef char slock_t;
-static __inline__ int
+static inline int
tas(volatile slock_t *lock)
{
return __sync_lock_test_and_set(lock, 1);