public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Reddy K <haritha.ponnolu@gmail.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: Reddy K via Libc-help <libc-help@sourceware.org>
Subject: Re: Regarding FD_ZERO compilation warning
Date: Mon, 20 Jun 2022 16:53:18 +0530	[thread overview]
Message-ID: <CAF7YG7oSCLTarwcFgCzF7WFjOWf1qXjsP==iwphub=dN=RDJ2w@mail.gmail.com> (raw)
In-Reply-To: <87tu8fk2vq.fsf@oldenburg.str.redhat.com>

Hi Florian,

I am including the below header files.

#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/select.h>

Thanks & Regards
Haritha

On Mon, Jun 20, 2022 at 4:39 PM Florian Weimer <fweimer@redhat.com> wrote:

> * Reddy K.:
>
> > Hi Florian,
> > Thank you very much for your help.
> >
> > As you suggested, I have generated  preprocessed sources with gcc -E.
> Please find macro
> > expansion below.
> > -------------------
> >  do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c"
> (__d0), "=D" (__d1) :
> > "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1"
> (&((&readfds)->__fds_bits)[0]) :
> > "memory"); } while (0);
> > ---------------------
>
> Ahh, that code was removed upstream in:
>
> commit 3430ed09d3bef58dbf3fe18d87716236883599d8
> Author: Florian Weimer <fweimer@redhat.com>
> Date:   Sun Feb 9 11:01:39 2020 +0100
>
>     x86: Remove <bits/select.h> and use the generic version
>
>     Particularly on CPUs without ERMS, the string instructions are slow,
>     so it is unclear whether this architecture-specific implementation is
>     in fact an optimization.
>
> If you need this backported in a distribution build, please contact your
> distribution about backporting the change.
>
> Thanks,
> Florian
>
>

  reply	other threads:[~2022-06-20 11:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-20  3:47 Reddy K
2022-06-20  7:31 ` Florian Weimer
2022-06-20 11:04   ` Reddy K
2022-06-20 11:09     ` Florian Weimer
2022-06-20 11:23       ` Reddy K [this message]
2022-06-20 11:26         ` Florian Weimer

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='CAF7YG7oSCLTarwcFgCzF7WFjOWf1qXjsP==iwphub=dN=RDJ2w@mail.gmail.com' \
    --to=haritha.ponnolu@gmail.com \
    --cc=fweimer@redhat.com \
    --cc=libc-help@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).