home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!news.u.washington.edu!stein.u.washington.edu!kcooke
- From: kcooke@stein.u.washington.edu (Kenneth E. Cooke)
- Newsgroups: comp.sys.hp48
- Subject: Re: Power of 2
- Message-ID: <1992Dec21.191508.8415@u.washington.edu>
- Date: 21 Dec 92 19:15:08 GMT
- Article-I.D.: u.1992Dec21.191508.8415
- References: <921219202242.26018622@CCSUA.CTSTATEU.EDU> <STEVEV.92Dec20030331@miser.uoregon.edu>
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington
- Lines: 24
-
- stevev@miser.uoregon.edu (Steve VanDevender) writes:
-
- >Kenneth Cooke writes:
- B
- >! << NOT DUP 1 + OR 1 + #0 == >>
-
- >There's an even better solution than this.
-
- >\<< # 0h SWAP OVER + DUP 1 - AND == \>>
-
- I dont know if I'd say better :)
- These are identical, one being the negative-logic version of the other.
- I do like yours better - it's easier to test for all 0's than all 1's
- (without knowing the word-size).
-
- >--
- >Steve VanDevender stevev@greylady.uoregon.edu
- >"Bipedalism--an unrecognized disease affecting over 99% of the population.
- >Symptoms include lack of traffic sense, slow rate of travel, and the
- >classic, easily recognized behavior known as walking."
-
- Ken Cooke
- N7VFE
- kcooke@u.washington.edu
-