Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
609e32b9
Commit
609e32b9
authored
Mar 10, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spinlock support for Itanium processor with Intel compiler.
Vikram Kalsi
parent
164adc4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+17
-2
No files found.
src/include/storage/s_lock.h
View file @
609e32b9
...
...
@@ -66,7 +66,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.13
3 2004/12/31 22:03:42 pgsql
Exp $
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.13
4 2005/03/10 21:41:01 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -168,7 +168,7 @@ spin_delay(void)
#endif
/* __i386__ || __x86_64__ */
#if defined(__ia64__) || defined(__ia64)
/* __ia64 used by ICC compiler? */
#if defined(__ia64__) || defined(__ia64)
/* Intel Itanium */
#define HAS_TEST_AND_SET
...
...
@@ -176,6 +176,8 @@ typedef unsigned int slock_t;
#define TAS(lock) tas(lock)
#ifndef __INTEL_COMPILER
static
__inline__
int
tas
(
volatile
slock_t
*
lock
)
{
...
...
@@ -189,6 +191,19 @@ tas(volatile slock_t *lock)
return
(
int
)
ret
;
}
#else
static
__inline__
int
tas
(
volatile
slock_t
*
lock
)
{
int
ret
;
ret
=
_InterlockedExchange
(
lock
,
1
);
/* this is a xchg asm macro */
return
ret
;
}
#endif
#endif
/* __ia64__ || __ia64 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment