public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] stdlib: Remove unused is_aligned function from qsort.c
Date: Wed, 17 Jan 2024 11:18:08 +0000 (GMT)	[thread overview]
Message-ID: <20240117111808.85D053858CDB@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=31bd548650673e8b5ae1a31f1c596ff8305a5d4c

commit 31bd548650673e8b5ae1a31f1c596ff8305a5d4c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Wed Jan 17 08:08:01 2024 -0300

    stdlib: Remove unused is_aligned function from qsort.c
    
    Checked on x86_64-linux-gnu.

Diff:
---
 stdlib/qsort.c | 13 -------------
 1 file changed, 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)
 {

                 reply	other threads:[~2024-01-17 11:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240117111808.85D053858CDB@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).