From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.help Subject: Bit shift oddity? Date: Sun, 18 Oct 2020 20:19:24 -0400 Message-ID: <880f79e9-e2ea-b180-d83f-c3d47f5fb789@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7204"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 19 02:19:55 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kUIu3-0001lH-0i for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 02:19:55 +0200 Original-Received: from localhost ([::1]:48244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUIu2-0006PH-2H for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 20:19:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUItf-0006Ov-84 for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 20:19:31 -0400 Original-Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:39693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUItd-0000cV-7F for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 20:19:30 -0400 Original-Received: by mail-io1-xd29.google.com with SMTP id q9so11013545iow.6 for ; Sun, 18 Oct 2020 17:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=7fPsRoJDWROmCXxidA06H9IEidOX9ZaSW3dSgDI1syY=; b=RSKvM5dSP3t/6sP/KHkUg4XHGtm9l8B1LjfP6p0rlZYuHyJ5jxBFcQGxVsoo8VB6r8 8uk4s6EFDmcnQtdQZ7U1fJRjdmDeD4BGFFwlnRHbTflrItW51OwW/1DKunoJSZp9/3Rx SdrgkZL6kEl7Q6eEUI5NRG2+EtIKlq3qISdF997JYGn5CldkBTpbqHnM8u1c54usWE84 hgtFxpoxJmVWmms5Zjj7c/FGxBUb4+qvzQfV1mNgsxN0qFN0pnpJpqIR68zPlFhPTdLg iHOngX9CVdqq9NHhlD5Zv4ySDSjUD+lGccoDnnOkAM7kRzbQCkXMOUBd/LIxpDLduKfL E7/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=7fPsRoJDWROmCXxidA06H9IEidOX9ZaSW3dSgDI1syY=; b=PpSifHj/TcbCheyAVMYastlPGbFsCdVQeTFmDEJo8y2GSs4NBjR8e4xM81BSHTVbTA a2Xi6CBafejJPNWMJRrNt5p/adLTjYxsOBJa+5mBcKU/9yjG+fuzekkfoCspjcbDhEnO gJybAUZM9sjSkiQ2r5FOD8QB2batWJt1E93ogw8VqDzAVPuxb0Ipv/K9HKsi6fJJqGKx bPn75MJKMEuQ97683JPEI+Wkn76l16f2MWr10BH1Ofd4kZg3ydTEzd3kiZ4hKcWUX22i edlBjoWcxU8vqIfTcn5HmjVZZtv9PK64eg5uojH15SYJ3WqPMUuaf3gxrjZTE5LGv0jW oj2g== X-Gm-Message-State: AOAM53236gMJfZNXPsXUP4neABfBXeiVJWyF4XpLSvvMyRGhjLLD4MKh G85IRaybf/HUEh4BHzsrFmPnDM5z1A== X-Google-Smtp-Source: ABdhPJwqkROMo4XFW4v6KMLzqEyHuZB2u8nw0tncA6xzTALvv07THIOiivHskJVZSR8C1ZQoARUWpA== X-Received: by 2002:a02:a196:: with SMTP id n22mr9542360jah.104.1603066767312; Sun, 18 Oct 2020 17:19:27 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.239.127]) by smtp.gmail.com with ESMTPSA id p12sm10736157ili.14.2020.10.18.17.19.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2020 17:19:26 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=d.lewan2000@gmail.com; helo=mail-io1-xd29.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124562 Archived-At: I see the following: ELISP> (= (lsh -1 (lognot 0)) (lsh -2 (lognot 0))) t ELISP> (= (lsh -1 (lognot 0)) (lsh -3 (lognot 0))) nil The first seems odd to me. Is it really what's expected? -- ,Doug d.lewan2000@gmail.com (908) 720 7908 You know, it's amazing how much closer to 0 that 8 067 332 is than 15 is. (2020 Oct 18)