public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-apps@cygwin.com
Subject: Re: can't compile coreutils-9.3 any more after upgrade to cygwin-3.4.8
Date: Wed, 30 Aug 2023 11:57:15 +0200	[thread overview]
Message-ID: <ZO8Se08piQ5TE+bA@calimero.vinschen.de> (raw)
In-Reply-To: <ZO8NLk0PXJj6eGAN@calimero.vinschen.de>

On Aug 30 11:34, Corinna Vinschen via Cygwin-apps wrote:
>  #define CPU_ZERO_S(siz, set) __cpuset_zero_s (siz, set)
> -static __inline void
> -__cpuset_zero_s (size_t siz, cpu_set_t *set)
> -{
> -  (void) memset (set, 0, siz);
> -}
> +void __cpuset_zero_s (size_t, cpu_set_t *);
>  [...]
> +__cpuset_zero_s (size_t siz, cpu_set_t *set)
> +{
> +  (void) memset (set, 0, siz);
> +}
> +
>  } /* extern C */

Also, we can avoid an external __cpuset_zero_s function by just using a
loop, kind of like this:

  #define CPU_ZERO_S(siz, set) __cpuset_zero_s (siz, set)
  static __inline
  __cpuset_zero_s (size_t siz, cpu_set_t *set)
  {
  #if __GNUC_PREREQ (2, 91)
    __builtin_memset (set, 0, siz);
  #else
    siz /= sizeof (__cpu_mask);
    while (siz > 0)
      set->_bits[--siz] = 0;
  #endif
  }


Corinna

  reply	other threads:[~2023-08-30  9:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <83C27059-CB24-48F5-AC91-AB0622DF82CD@Denis-Excoffier.org>
     [not found] ` <aa38a12e-875a-bfaf-6427-2f8d05c0bc47@maxrnd.com>
     [not found]   ` <ZOh2lNSnYAJmZqUh@calimero.vinschen.de>
     [not found]     ` <ff004ecd-0bd7-1886-bf81-88daa6b48f2a@maxrnd.com>
     [not found]       ` <ZOoFxp0yvqK3ZWxX@calimero.vinschen.de>
2023-08-30  7:29         ` Mark Geisert
2023-08-30  9:34           ` Corinna Vinschen
2023-08-30  9:57             ` Corinna Vinschen [this message]
2023-08-30 12:17               ` Corinna Vinschen
2023-08-30 18:04                 ` Brian Inglis
2023-08-30 18:10                   ` Corinna Vinschen
2023-08-31  8:24                     ` Corinna Vinschen
2023-09-01 10:28                       ` Mark Geisert
2023-09-01 10:38                         ` Corinna Vinschen
2023-09-02  6:51                           ` Mark Geisert
2023-08-31  6:54                 ` Mark Geisert

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=ZO8Se08piQ5TE+bA@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin-apps@cygwin.com \
    /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).