mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
> > I'll re-check that with the ppc architecture guy here.
> > ... he is now about to write an inlined version that can go into > s_lock.h . I'll send the new patch later on... OK, here it comes: An inlined version of tas(), that works for both, powerpc and powerpc64. The patch is against 7.3b5 and passes the test suite on both architectures. Reinhard Max
This commit is contained in:
@@ -14,6 +14,11 @@ typedef unsigned char slock_t;
|
||||
|
||||
#define HAS_TEST_AND_SET
|
||||
|
||||
#elif defined(__powerpc64__)
|
||||
typedef unsigned long slock_t;
|
||||
|
||||
#define HAS_TEST_AND_SET
|
||||
|
||||
#elif defined(__powerpc__)
|
||||
typedef unsigned int slock_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user