Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp948052pxp; Wed, 16 Mar 2022 22:17:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkVCAMR0Dqw8nVkCAc6o/eGvGJ6ew3JwpksGf96AeLQ/DI0igOVFDltLILsX/a/Pvn022M X-Received: by 2002:a17:903:41c1:b0:151:f026:804f with SMTP id u1-20020a17090341c100b00151f026804fmr3363406ple.23.1647494269695; Wed, 16 Mar 2022 22:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647494269; cv=none; d=google.com; s=arc-20160816; b=wJweSN0SM4mTnHQTqSRCjs2YkCcohZDaCIhaekTntZgvzMlY6ChZqP+JjOKL7REBy7 QSC2FMaJeqhgOnkPGkhgsLQ7onQ4K7AvQTsc5C3b7HN489lF+QL0vxqhkzgO/Y1KeZgR PXFx7gCwYmELDU8LjLT8D4KoWy047fRzfTkCVgykUl94iRO4xyXBO2j5eoKMiuWjdWyc wb5uwQvWts51R9Bdor4IBYk21hsRxPvJZGnJjFOotBzrDUO+kzZdUCHoKHPMcdlpFuMM gGnYU0dESLjPaA5gj0kSJfDnwEH4yG72busFhLTkaaW1d5G4eL4zYCQm8RjCzzwfKRbu nJDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=A+Wf6nipilc62C5+2uvqd/Mtv9A0A5YLc2vYs6Wsj5I=; b=LUxHk5Avbl2wu12VdhIIM7wztbdTSf1z+MT4+84xiWJvXqPfdDpkiRCtHwubFV9eiH SbWOjYfus6lr1/XZ9wj8iuipDJ5QCTlpXbJKXufcJGqR4BKp5AygImEWuOC5fy9V9rBv YcJaDUsT0nsNA04JVfx1HN63GSNZairOj3lKk6UpBQgPW5YNCZKR/EuY6MbkHT04kl5J egCs7SNYhv7Rn5pYF2s7Y8MZufb/BEaK4kpCoeo1/GmbmqVgW5x/xqsVTnFwZfGmw0qM 4xSBlILh6ofSP24GxO5H3iMk33aag98Sd+4vvpkPWCGDeE49/my7sE2qgHRn4hHIG7sx gnlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q71DUZDk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t11-20020a63b70b000000b003816043ef44si1178187pgf.313.2022.03.16.22.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:17:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q71DUZDk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B7F2C1F6860; Wed, 16 Mar 2022 21:25:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355801AbiCQBUb (ORCPT + 99 others); Wed, 16 Mar 2022 21:20:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240599AbiCQBUa (ORCPT ); Wed, 16 Mar 2022 21:20:30 -0400 Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8B391D337 for ; Wed, 16 Mar 2022 18:19:15 -0700 (PDT) Received: by mail-vs1-xe2c.google.com with SMTP id v62so4076680vsv.1 for ; Wed, 16 Mar 2022 18:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=A+Wf6nipilc62C5+2uvqd/Mtv9A0A5YLc2vYs6Wsj5I=; b=Q71DUZDk7wnQyc8I2qTmyrUitsPPbwzcmK/9B3h+reFop1O6ehsoZATMGsZg3C80+b +mD3ePTRNq13qXn2y0ZbDx78rWSKe5vXWcpbMS+1GGS7Hyl0aIObyC38Suc/cHr6ZOeK YEKKNGliO6dHzhUPCV2tMVxszotQnLeylYlo8UwqdH6bQy04hzwJJH6SYICaaaPgdGL9 PD2dJIfgsQKh088rCzfIPu35WU2Ene7GXHykCPdUbEJHcOsnZajKaW1Q5uHVXnOTHay3 tJS1TUsJ97I/DeqHnAL35fRQqb4tZoR+oYMpY4T5ZYiFDSLU+h13fKPDxE29bJu8ubUr RSoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=A+Wf6nipilc62C5+2uvqd/Mtv9A0A5YLc2vYs6Wsj5I=; b=iVJpp0B76s0utkxhvkCaxYFSCrdrjyy+A87ubdAyek4MKT2E8XS8RRuZVLH9uzaP7w MW0VyBhlCSh8TSRmIpVzZLbc7cClmvRiPsVFJsDjn3//NVumwlrE5Hoy0IJ0unsCcd4C uuxFao9nZfN6VxEoC3y/ymPefzfBD/drtGC3O1aMgfMGl4b1HMjFMXc4Yfyqf6bCbyye i/GRT64Tadh7wZb3gEr4r9g2WYzDR96avTI0DP+8iPF/ChDXtP3idSUD4v2GI1/h1nE+ qIkdOeP+MwBY0qfy+8cjLJESfJuFMgfKR2OF7T/KHuytD1xuXDxzIm9Gji7V2dI95aJN 5Ptw== X-Gm-Message-State: AOAM5323QYDqv2O4eoVfN8w3U2KkwmcR5DigMUw/oufRNjjp/RR9RCx/ qvCj+68gfqDwjwfnEKQDq1/vhf5w0t1WmkZPaYnkbhNo27vz5w== X-Received: by 2002:a05:6102:c02:b0:320:9e52:4856 with SMTP id x2-20020a0561020c0200b003209e524856mr801645vss.20.1647479954585; Wed, 16 Mar 2022 18:19:14 -0700 (PDT) MIME-Version: 1.0 From: jim.cromie@gmail.com Date: Wed, 16 Mar 2022 19:18:48 -0600 Message-ID: Subject: does kernel have any FOLD_LEFT macro equivalent ? To: LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org does the kernel have anything like BOOST_PP_SEQ_FOLD_LEFT(op, state, seq) ? or any hand-coded implementation of the pattern in-kernel that I can look at ?