bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17475: 24.3.91; bug of byte-optimize-zerop


From: Stefan Monnier
Subject: bug#17475: 24.3.91; bug of byte-optimize-zerop
Date: Tue, 20 May 2014 14:32:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> zerop itself is not an error-free fuction.
> I'll change my poroposal code.

> (defun byte-optimize-zerop (form)
>   (cond ((numberp (nth 1 form))
>          (eval form))
>       ((list '= (nth 1 form) 0))))

Actually, you can drop the first option since the optimizer rules for
`=' will take care of it for us.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]