diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-12-16 12:32:17 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-12-28 14:57:57 -0300 |
commit | 5a5f7a160da6ac3d141013e9a08f78edc216e434 (patch) | |
tree | e0007e3ce4df28062f87e512b071bc4a1bf10b3f /sysdeps | |
parent | c75aa9246a8cfc814d99cf5f58229177bd69fc4f (diff) | |
download | glibc-5a5f7a160da6ac3d141013e9a08f78edc216e434.tar.gz glibc-5a5f7a160da6ac3d141013e9a08f78edc216e434.tar.xz glibc-5a5f7a160da6ac3d141013e9a08f78edc216e434.zip |
malloc: Remove atomic_* usage
These typedef are used solely on memusage and can be replaced with generic types.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/arc/memusage.h | 2 | ||||
-rw-r--r-- | sysdeps/generic/memusage.h | 14 | ||||
-rw-r--r-- | sysdeps/nios2/memusage.h | 2 |
3 files changed, 0 insertions, 18 deletions
diff --git a/sysdeps/arc/memusage.h b/sysdeps/arc/memusage.h index 290252a92f..e8a508a8ff 100644 --- a/sysdeps/arc/memusage.h +++ b/sysdeps/arc/memusage.h @@ -18,6 +18,4 @@ #define GETSP() ({ register uintptr_t stack_ptr asm ("sp"); stack_ptr; }) -#define uatomic32_t unsigned int - #include <sysdeps/generic/memusage.h> diff --git a/sysdeps/generic/memusage.h b/sysdeps/generic/memusage.h index 408e0b891b..c9bde5cd11 100644 --- a/sysdeps/generic/memusage.h +++ b/sysdeps/generic/memusage.h @@ -17,7 +17,6 @@ #include <limits.h> -#include <atomic.h> #include <stdint.h> #ifndef GETSP @@ -36,16 +35,3 @@ high = usecs >> 32; \ } #endif - -#if LONG_BIT == 32 -# define memusage_cntr_t uatomic32_t -#else -# define memusage_cntr_t uatomic64_t -#endif -#ifndef memusage_size_t -# if LONG_BIT == 32 -# define memusage_size_t uatomic32_t -# else -# define memusage_size_t uatomic64_t -# endif -#endif diff --git a/sysdeps/nios2/memusage.h b/sysdeps/nios2/memusage.h index 01618e44a8..6f1c78812d 100644 --- a/sysdeps/nios2/memusage.h +++ b/sysdeps/nios2/memusage.h @@ -18,6 +18,4 @@ #define GETSP() ({ register uintptr_t stack_ptr asm ("%sp"); stack_ptr; }) -#define uatomic32_t unsigned int - #include <sysdeps/generic/memusage.h> |