home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / arch / 11580 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!super!duncan
  3. From: duncan@super.org (Duncan A. Buell)
  4. Subject: Re: Any use for Branch if Even/Odd ?
  5. Message-ID: <1992Dec11.141219.27028@super.org>
  6. Sender: news@super.org (USENET News System)
  7. Nntp-Posting-Host: planet
  8. Organization: Supercomputing Research Center (Bowie, MD)
  9. Date: Fri, 11 Dec 1992 14:12:19 GMT
  10. Lines: 20
  11.  
  12. I can think of several uses for this instruction.  Exponentiation is
  13. one obvious example.  Although I can't recall specifics, I know I have
  14. on *many* occasions done a branch based on the low bit of an integer.
  15.  
  16. I am equally sure that this is NOT the reason the instruction exists.
  17. Such an instruction is especially useful in handling bit patterns
  18. used for controlling execution, and there is probably a good reason
  19. in the architecture or operating system for this.
  20.  
  21. An afterthought.  I mean exponentiation of integers or exponentiation
  22. in some other group or ring.  ("I suppose there probably *are* other
  23. kinds of exponentiation," he said, in an attempt at humor.)
  24.  
  25. Duncan Buell
  26.  ----------------------------------------------------------------------
  27. |   Duncan A. Buell                    Senior Research Scientist       |
  28. |   301-805-7372                       Supercomputing Research Center  |
  29. |   301-805-7602 (FAX)                 17100 Science Drive             |
  30. |   duncan@super.org                   Bowie, Maryland 20715           |
  31.  ----------------------------------------------------------------------
  32.