From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id E72993858D28 for ; Wed, 6 Jul 2022 20:30:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E72993858D28 Received: by mail-ot1-x331.google.com with SMTP id s13-20020a0568301e0d00b00616ad12fee7so12594273otr.10 for ; Wed, 06 Jul 2022 13:30:42 -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=7fjg8v9CGM+TzAWM6Zd3iqEam6TKg4KnNB7BeAcHfwI=; b=afObPVr7gE1UfnN6rTLG1VtVfPIra3zn/QNyL9ZgNUNOnoyJ6nMq6ODsgW9UEDz70k BEYREI2oc0wfqFYn8JLUh2x6YFRncemcAumXxbK+Xfutvy/xC4yyO3itl2kd5Ft6U/M2 brn+qTQ7V20bk1FaMmIn3vdlJgHIfdmJ9ibGq6l6M2srjrPdyUf0pdLHqn5QR+KOFmpo EMH6KyRgFXL2TN8SuvB0RixjMi3iTLUS5uvZxcduDyXfQZJxTzD+YX0dfNxXmAX4iiST g9PXLa8zyMNVLI4MIZUWPEneWvppGWuaC7k9047TfdwP28oWmDonoS/GTtKNBAPMRyVo w4gQ== X-Gm-Message-State: AJIora8CREedhogc1g8vevgB9yiXigXJhLKHzYqCUbiXEGSDmGu531+9 P927NNq1p0OXZmvM9zOJ/WARA+62tJNLRUaIJX1JL2Pr X-Google-Smtp-Source: AGRyM1tFU2OI/bDP7cQi0QSJN+Vh299nEZlicpIeMGbJFpc5KVNt0QyM0UziNqPF16mmlFPuHZj64F4dxU44hHXy5Bc= X-Received: by 2002:a05:6830:4420:b0:616:e569:8ae9 with SMTP id q32-20020a056830442000b00616e5698ae9mr17502379otv.265.1657139442221; Wed, 06 Jul 2022 13:30:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Noah Goldstein Date: Wed, 6 Jul 2022 13:30:31 -0700 Message-ID: Subject: Re: [PATCH 3/7] Remove atomic_bit_set/bit_test_set To: Wilco Dijkstra Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2022 20:30:45 -0000 On Wed, Jul 6, 2022 at 1:14 PM Wilco Dijkstra wrote: > > Hi Noah, > > The goal here is to move to the standard atomics, not to invent our own set for > convenience or just for fun to be different etc. There were 2 uses of atomic_bit_set > in all of GLIBC, and I cannot believe that atomic_fetch_or (&x, 1 << bit) could cause > any confusion given that it is very similar to x |= 1 << bit. We don't wrap such > expressions in macros like bitset (x, bit) either - it just doesn't make sense. > > As I mentioned, I'll use EXITING_BITMASK rather than 1 << EXITING_BIT. Alright. > > Cheers, > Wilco