all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bit shift oddity?
@ 2020-10-19  0:19 Douglas Lewan
  2020-10-19  7:06 ` tomas
  2020-10-19  9:23 ` Gregory Heytings via Users list for the GNU Emacs text editor
  0 siblings, 2 replies; 8+ messages in thread
From: Douglas Lewan @ 2020-10-19  0:19 UTC (permalink / raw)
  To: help-gnu-emacs

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)



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-19 15:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-19  0:19 Bit shift oddity? Douglas Lewan
2020-10-19  7:06 ` tomas
2020-10-19  7:48   ` Douglas Lewan
2020-10-19  9:01     ` tomas
2020-10-19 15:14       ` Stefan Monnier
2020-10-19 15:30         ` tomas
2020-10-19  9:23 ` Gregory Heytings via Users list for the GNU Emacs text editor
2020-10-19 15:19   ` Douglas Lewan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.