From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24262 invoked from network); 19 Apr 2021 08:05:45 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 Apr 2021 08:05:45 -0000 Received: (qmail 28446 invoked by uid 550); 19 Apr 2021 08:05:44 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 28412 invoked from network); 19 Apr 2021 08:05:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=vIj+Kf9Dx6KXY91Lq7hY5YfTM0Lzc1sbROl38xCXOuE=; b=HPVfcSG4ru8gz1f3u467K5GTrLMRrIe7cJAzOqmSE+8MU0q81RguE1dgfbu83A+BdB wGOA4Tk+KUsI2V8IytqeKwTgi7yiC5HGTVFTuCdBygkrb3jBtHHDaMP4A0pcStSWNhxX YohlpgELjWadt87LZ9fFq4iy8n/SdMn4OJNqUlxPCgcQjilXEu8xNwberhKf/bwCI76l AMcANY4CdhBH3Hlvtz+j4z4rOefDyncNS8giXhqKUr24GXEU/qRnoCIYGxSygwEFsu3m X5MkAclqKXz+EKa6RVG63NueXactV566sTWcrPriA+1rmdiU5FaPPsdk2DzoLsS5eGGp quLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vIj+Kf9Dx6KXY91Lq7hY5YfTM0Lzc1sbROl38xCXOuE=; b=g1cC2XrG1ErwEsmWuClFnBid9bGl4WYWt22IrSYWbGBV3lzNmdYreKzSy/28wte/8P ta93HY+q3Mwo5USyn1Y9amr04RQ7wJK1D3Zi63KWXcdJcpqXlGnzsP+Y94MPglS+CG1o mEnRjWHKUrSHC6XJZAqm/n+t1tr01HNBEFbgFm0EE3XLJhkHW9sWqlBLMXGPkA8LkvIf HEwTboFPn5Xt+6Sqp501vZMSz3P6585RrnZck8dqDZieTiflj6PM10uq/V9yB/XNyAGW UnrleiutPu8fwRMVAQ1DPYNPUnPaEu7+D1/NBmTsR17CVQ4g04syLscNkpNtrSWZjtoM mGIw== X-Gm-Message-State: AOAM533ujE6i2qzGa4I8CI8imqc/xI6tUOBq4RVDANufpJLJg3U5mP7g HkfxEez8H+PYt0I6l5cBzjoTc/8Om2mSHtv79su1zMgr X-Google-Smtp-Source: ABdhPJw8Or3V9jbFrGkNeWPecwYgi7HINO6TRMvBTPPl8fAqI4qlVpsbMbNRk7cPTcAi75jcf25lmdkKpXjIOK7ihTY= X-Received: by 2002:a4a:d685:: with SMTP id i5mr12538718oot.32.1618819531273; Mon, 19 Apr 2021 01:05:31 -0700 (PDT) MIME-Version: 1.0 From: Jon Chesterfield Date: Mon, 19 Apr 2021 09:05:20 +0100 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="0000000000001df83105c04ecb7f" Subject: [musl] Requirements on code in libc headers --0000000000001df83105c04ecb7f Content-Type: text/plain; charset="UTF-8" Hello musl, I find myself implementing printf on a GPU without much compiler support. That's broadly working, if a bit macro + inline function themed. The intent is to eventually have all of musl running on the asic but that's a long game. Does anyone have a reference, or know offhand, what one is supposed to do for libc implementation code that lives in a header file? So far I have static inline on implementation functions and am putting __leading __underscores on function and variable names. Thanks! Jon --0000000000001df83105c04ecb7f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello musl,

= I find myself implementing printf on a GPU without much compiler support. T= hat's broadly working, if a bit macro + inline function themed. The int= ent is to eventually have all of musl running on the asic but that's a = long game.

Does anyone h= ave a reference, or know offhand, what one is supposed to do for libc imple= mentation code that lives in a header file?

So far I have static inline on implementation functions= and am putting __leading __underscores on function and variable names.

Thanks!

Jon
--0000000000001df83105c04ecb7f--