From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 97E19385829F for ; Mon, 20 Jun 2022 11:23:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 97E19385829F Received: by mail-ed1-x535.google.com with SMTP id eq6so7326241edb.6 for ; Mon, 20 Jun 2022 04:23:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NohGJHZwmnhqEXEzPFA79+3+aTC+8mPwGhX+g+8jlbk=; b=SPTRTuJkpkVQmGeP6sDtOx56J4tAO8HvChLBNOotVKAAS5VZvmwHhv9Ag6L6qf6jHs GVZqS5lQVZxhHlFD5dZuGqYGOKL8kjRryu/ErzU7ZK6djcBorkMBULO/GBfETcaXt0BF uV1/EWrJNgSJ1d5SLgGoE8h7TqmFYKjEgvK9xUyMIiqqL+X1R3TVnwouG/t2lnRxFb57 R7kKg8ltrQ0Kgpz3zjhkbhPrT/I4B9MSVu191zOb9DQqXcTxHuY4D8SXpsNNfuiiTFQT 0AFKjdl5NfSyRkPP8KWrpOYXXgxlnbYfKng2r2kP8TmzXDhYjXK4Yp7BvSQdAtD48ka7 Yu8Q== X-Gm-Message-State: AJIora9z/xz1UGFHpRGbwRnJCxAeGOru9Vp+E4vVPmaKyvDYmmu+RE0s J5GwnvlnEaXyxDBPifbagc/2j/n7pFxPEma6C/o= X-Google-Smtp-Source: AGRyM1tcSLf+v5WATL+43YdIazFzZkLBgW6oxSh6Ic1EzetRJzqxBj6DRCI0WSeQOjEmuF8V4yzlcJ5kv9BoOVf2pZM= X-Received: by 2002:a05:6402:1e92:b0:42d:dc34:e233 with SMTP id f18-20020a0564021e9200b0042ddc34e233mr29541301edf.386.1655724209412; Mon, 20 Jun 2022 04:23:29 -0700 (PDT) MIME-Version: 1.0 References: <87edzjn644.fsf@oldenburg.str.redhat.com> <87tu8fk2vq.fsf@oldenburg.str.redhat.com> In-Reply-To: <87tu8fk2vq.fsf@oldenburg.str.redhat.com> From: Reddy K Date: Mon, 20 Jun 2022 16:53:18 +0530 Message-ID: Subject: Re: Regarding FD_ZERO compilation warning To: Florian Weimer Cc: Reddy K via Libc-help X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2022 11:23:33 -0000 Hi Florian, I am including the below header files. #include #include #include #include #include Thanks & Regards Haritha On Mon, Jun 20, 2022 at 4:39 PM Florian Weimer 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 > Date: Sun Feb 9 11:01:39 2020 +0100 > > x86: Remove 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 > >