-/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Maciej W. Rozycki <macro@ds2.pg.gda.pl>, 2000.
#define _SYS_TAS_H 1
#include <features.h>
+#include <sgidefs.h>
__BEGIN_DECLS
# endif
_EXTERN_INLINE int
-_test_and_set (int *p, int v) __THROW
+__NTH (_test_and_set (int *p, int v))
{
int r, t;
("/* Inline test and set */\n"
"1:\n\t"
".set push\n\t"
+#if _MIPS_SIM == _ABIO32
".set mips2\n\t"
+#endif
"ll %0,%3\n\t"
"move %1,%4\n\t"
"beq %0,%4,2f\n\t"