X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fuatomic_arch_s390.h;h=2a4fa03e66cedb8d32488ae9e659ef886e76d88f;hb=f7a3d9d917966b0acb45399a66d42dd7e7acb0ca;hp=5942ffe46bf81220383ab36757dc1628274915e0;hpb=b0926524217204eb3f4f13375c9eef75ff484d08;p=urcu.git diff --git a/urcu/uatomic_arch_s390.h b/urcu/uatomic_arch_s390.h index 5942ffe..2a4fa03 100644 --- a/urcu/uatomic_arch_s390.h +++ b/urcu/uatomic_arch_s390.h @@ -8,7 +8,7 @@ * * Copyright (c) 2009 Novell, Inc. * Author: Jan Blunck - * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Mathieu Desnoyers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -36,18 +36,6 @@ extern "C" { #endif -#ifndef __SIZEOF_LONG__ -#ifdef __s390x__ -#define __SIZEOF_LONG__ 8 -#else -#define __SIZEOF_LONG__ 4 -#endif -#endif - -#ifndef BITS_PER_LONG -#define BITS_PER_LONG (__SIZEOF_LONG__ * 8) -#endif - #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2) #define COMPILER_HAVE_SHORT_MEM_OPERAND #endif @@ -96,7 +84,7 @@ unsigned long _uatomic_exchange(volatile void *addr, unsigned long val, int len) : "memory", "cc"); return old_val; } -#if (BITS_PER_LONG == 64) +#if (CAA_BITS_PER_LONG == 64) case 8: { unsigned long old_val; @@ -139,7 +127,7 @@ unsigned long _uatomic_cmpxchg(void *addr, unsigned long old, : "memory", "cc"); return old_val; } -#if (BITS_PER_LONG == 64) +#if (CAA_BITS_PER_LONG == 64) case 8: { __asm__ __volatile__(