diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-01-17 08:08:01 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-01-17 08:08:56 -0300 |
commit | 31bd548650673e8b5ae1a31f1c596ff8305a5d4c (patch) | |
tree | 2f8b42caa8b75b10d485c0efdf3a5bc935bba79d /stdlib | |
parent | e2803cfd8bb00b54816d1a2c381d2cf82b136da6 (diff) | |
download | glibc-31bd548650673e8b5ae1a31f1c596ff8305a5d4c.tar glibc-31bd548650673e8b5ae1a31f1c596ff8305a5d4c.tar.gz glibc-31bd548650673e8b5ae1a31f1c596ff8305a5d4c.tar.bz2 glibc-31bd548650673e8b5ae1a31f1c596ff8305a5d4c.zip |
stdlib: Remove unused is_aligned function from qsort.c
Checked on x86_64-linux-gnu.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/qsort.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/stdlib/qsort.c b/stdlib/qsort.c index 45af8da80c..7f5a00fb33 100644 --- a/stdlib/qsort.c +++ b/stdlib/qsort.c @@ -40,19 +40,6 @@ enum swap_type_t typedef uint32_t __attribute__ ((__may_alias__)) u32_alias_t; typedef uint64_t __attribute__ ((__may_alias__)) u64_alias_t; -/* If this function returns true, elements can be safely copied using word - loads and stores. Otherwise, it might not be safe. BASE (as an integer) - must be a multiple of the word alignment. SIZE must be a multiple of - WORDSIZE. Since WORDSIZE must be a multiple of the word alignment, and - WORDSIZE is a power of two on all supported platforms, this function for - speed merely checks that BASE and SIZE are both multiples of the word - size. */ -static inline bool -is_aligned (const void *base, size_t size, size_t wordsize) -{ - return (((uintptr_t) base | size) & (wordsize - 1)) == 0; -} - static inline void swap_words_64 (void * restrict a, void * restrict b, size_t n) { |