home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / hp48 / 6446 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.2 KB

  1. Path: sparky!uunet!ogicse!news.u.washington.edu!stein.u.washington.edu!kcooke
  2. From: kcooke@stein.u.washington.edu (Kenneth E. Cooke)
  3. Newsgroups: comp.sys.hp48
  4. Subject: Re: Power of 2
  5. Message-ID: <1992Dec21.191508.8415@u.washington.edu>
  6. Date: 21 Dec 92 19:15:08 GMT
  7. Article-I.D.: u.1992Dec21.191508.8415
  8. References: <921219202242.26018622@CCSUA.CTSTATEU.EDU> <STEVEV.92Dec20030331@miser.uoregon.edu>
  9. Sender: news@u.washington.edu (USENET News System)
  10. Organization: University of Washington
  11. Lines: 24
  12.  
  13. stevev@miser.uoregon.edu (Steve VanDevender) writes:
  14.  
  15. >Kenneth Cooke writes:
  16. B
  17. >! << NOT DUP 1 + OR 1 + #0 == >>
  18.  
  19. >There's an even better solution than this.
  20.  
  21. >\<< # 0h SWAP OVER + DUP 1 - AND == \>>
  22.  
  23. I dont know if I'd say better :)
  24. These are identical, one being the negative-logic version of the other.
  25. I do like yours better - it's easier to test for all 0's than all 1's
  26. (without knowing the word-size).
  27.  
  28. >--
  29. >Steve VanDevender     stevev@greylady.uoregon.edu
  30. >"Bipedalism--an unrecognized disease affecting over 99% of the population.
  31. >Symptoms include lack of traffic sense, slow rate of travel, and the
  32. >classic, easily recognized behavior known as walking."
  33.  
  34. Ken Cooke
  35. N7VFE
  36. kcooke@u.washington.edu
  37.