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

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

bug#22689: [PATCH] Add logcount


From: Eli Zaretskii
Subject: bug#22689: [PATCH] Add logcount
Date: Sat, 30 Sep 2017 19:17:50 +0300

> Date: Sat, 30 Sep 2017 12:03:31 -0400
> From: Mark Oteiza <address@hidden>
> Cc: address@hidden
> 
> > > I tried implementing your comments (and added a test).  I don't know
> > > what to do in the #else for ULONG_LONG_MAX.
> > 
> > Same as you do for ULONG_MAX, I think.
> 
> so the following?
> 
>   else if (v <= ULONG_MAX || v <= ULONG_LONG_MAX)
>       XSETINT (res, logcount64 (v));

Yes.





reply via email to

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