summaryrefslogtreecommitdiffstats
path: root/debian/htdig/htdig-3.2.0b6/db/x86.gcc
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-11-05 13:28:23 +0100
committerSlávek Banko <[email protected]>2021-11-05 13:28:23 +0100
commit8c787c3591c1c885b91a54128835b400858c5cca (patch)
treeeca1b776912a305c4d45b3964038278a2fae1ead /debian/htdig/htdig-3.2.0b6/db/x86.gcc
parentfe188b907cdf30dfdfe0eba9412e7f8749fec158 (diff)
downloadextra-dependencies-8c787c3591c1c885b91a54128835b400858c5cca.tar.gz
extra-dependencies-8c787c3591c1c885b91a54128835b400858c5cca.zip
DEB htdig: Added to repository.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/db/x86.gcc')
-rw-r--r--debian/htdig/htdig-3.2.0b6/db/x86.gcc17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/db/x86.gcc b/debian/htdig/htdig-3.2.0b6/db/x86.gcc
new file mode 100644
index 00000000..1009162a
--- /dev/null
+++ b/debian/htdig/htdig-3.2.0b6/db/x86.gcc
@@ -0,0 +1,17 @@
+/*
+ * @(#)x86.gcc 11.1 (Sleepycat) 7/25/99
+ *
+ * For gcc/x86, 0 is clear, 1 is set.
+ */
+#define MUTEX_SET(tsl) ({ \
+ register tsl_t *__l = (tsl); \
+ int __r; \
+ asm volatile("movl $1,%%eax; lock; xchgb %1,%%al; xorl $1,%%eax"\
+ : "=&a" (__r), "=m" (*__l) \
+ : "1" (*__l) \
+ ); \
+ __r & 1; \
+})
+
+#define MUTEX_UNSET(tsl) (*(tsl) = 0)
+#define MUTEX_INIT(tsl) MUTEX_UNSET(tsl)