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=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11870 invoked from network); 6 Dec 2020 18:51:16 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 6 Dec 2020 18:51:16 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by ewsd; Sun Dec 6 13:49:34 -0500 2020 Received: from abbatoir.fios-router.home (pool-74-101-2-6.nycmny.fios.verizon.net [74.101.2.6]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 09a7d6fd (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO); Sun, 6 Dec 2020 10:49:24 -0800 (PST) Message-ID: <23D0CE12F0A6885C041A6F186B0B2920@eigenstate.org> To: iru.muzgo@gmail.com To: 9front@9front.org Date: Sun, 06 Dec 2020 10:49:23 -0800 From: ori@eigenstate.org In-Reply-To: <3e3488b7-ef5f-3fc2-bff9-611a96bf86e6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: scale-out converged YAML wrapper factory Subject: Re: [9front] [patch] add log2 to ape Reply-To: 9front@9front.org Precedence: bulk Quoth Iruatã Souza : > Hi, > > + > +double > +log2(double arg) > +{ > + return log(x)/_log2; > +} > In error cases, this divides the error return by log2. I suspect we don't want to do that. I'd also rather name all of the constants consistently. Maybe uppercase the initial character, instead of giving one of them an _ prefix.