Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] zsh/mathfunc: Add log2()
- X-seq: zsh-workers 43278
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] zsh/mathfunc: Add log2()
- Date: Mon, 13 Aug 2018 09:39:43 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180813083946euoutp01fb994375d1b8c5f5581896d1ef73c2ed~KZOu8aqpC0273102731euoutp01I
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1534149586; bh=RlykxkN3m8vwAianyEf/A1mZ++D8rHDXTw6ONVNuOfE=; h=Date:From:To:Subject:In-Reply-To:References:From; b=ZVj9IzqItJXeiq6qcXczL4Oy8MdhvXO0nvx6cXXXfbjRk24jpea+bWw2ZcRLHkzbk 3QYO0kWeMSaubRZRyHPj4DcN6XcwqMDl31H9CFJKQQD0wanjslLLmrN6CHSDx56gS4 TLkVnEW5PUQ083EUnq8yCsZJh0MxpA/1dXSJs27Q=
- In-reply-to: <647A3A10-A3AA-4E02-98AC-38385B34D35A@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180812082115epcas4p17b38f56487b9d30c9fcd9b450938cbf1@epcas4p1.samsung.com> <647A3A10-A3AA-4E02-98AC-38385B34D35A@dana.is>
On Sun, 12 Aug 2018 03:20:37 -0500
dana <dana@xxxxxxx> wrote:
> Someone on IRC today was absolutely incensed that zsh/mathfunc
> doesn't provide a log2(). I assume that's just because it's trivial
> to do it in 'user land'. But it's also trivial to do it here, so....
Hmmm... I wonder what sort of real world uses require a floating point
log 2 as a fundamental part. But it's uncontroversial with the
fallback implementation you added, so thanks. I've committed it.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author