From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22689: [PATCH] Add logcount Date: Sat, 30 Sep 2017 19:17:50 +0300 Message-ID: <8360c040up.fsf@gnu.org> References: <87h9h9pnof.fsf@udel.edu> <20170929174134.e6uxcr63dtyvd6f4@logos.localdomain> <83mv5c4dl0.fsf@gnu.org> <20170930131636.xe22lbwlea7yqelh@logos.localdomain> <83a81c478s.fsf@gnu.org> <20170930145525.kg2zh3jf5odx6g3s@logos.localdomain> <838tgw42ol.fsf@gnu.org> <20170930160331.ibxxjh626jrlm4ef@logos.localdomain> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1506788349 23137 195.159.176.226 (30 Sep 2017 16:19:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Sep 2017 16:19:09 +0000 (UTC) Cc: 22689@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 30 18:19:05 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyKTo-0005dn-Iw for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Sep 2017 18:19:04 +0200 Original-Received: from localhost ([::1]:39786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyKTu-0001QD-F5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Sep 2017 12:19:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyKTp-0001Q7-5H for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 12:19:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyKTl-0000If-VR for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 12:19:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60894) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyKTl-0000IS-Rh for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 12:19:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dyKTl-0007nm-Ij for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 12:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2017 16:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22689 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22689-submit@debbugs.gnu.org id=B22689.150678828829920 (code B ref 22689); Sat, 30 Sep 2017 16:19:01 +0000 Original-Received: (at 22689) by debbugs.gnu.org; 30 Sep 2017 16:18:08 +0000 Original-Received: from localhost ([127.0.0.1]:41342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyKSu-0007mW-KT for submit@debbugs.gnu.org; Sat, 30 Sep 2017 12:18:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyKSt-0007mH-6x for 22689@debbugs.gnu.org; Sat, 30 Sep 2017 12:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyKSk-000839-Oy for 22689@debbugs.gnu.org; Sat, 30 Sep 2017 12:18:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyKSk-00082r-Lf; Sat, 30 Sep 2017 12:17:58 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4150 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dyKSj-0004TZ-Ie; Sat, 30 Sep 2017 12:17:58 -0400 In-reply-to: <20170930160331.ibxxjh626jrlm4ef@logos.localdomain> (message from Mark Oteiza on Sat, 30 Sep 2017 12:03:31 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137692 Archived-At: > Date: Sat, 30 Sep 2017 12:03:31 -0400 > From: Mark Oteiza > Cc: 22689@debbugs.gnu.org > > > > 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.