home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21769 < prev    next >
Encoding:
Text File  |  1993-01-23  |  958 b   |  30 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!e2big.mko.dec.com!adserv.enet.dec.com!winalski
  3. From: winalski@adserv.enet.dec.com (Paul S. Winalski)
  4. Subject: Re: VAXC divide problems (V3.2)
  5. Message-ID: <1993Jan22.182101.26645@e2big.mko.dec.com>
  6. Lines: 17
  7. Sender: usenet@e2big.mko.dec.com (Mr. USENET)
  8. Reply-To: winalski@adserv.enet.dec.com (Paul S. Winalski)
  9. Organization: Digital Equipment Corporation, Nashua NH
  10. References:  <1993Jan22.060311.5226@cs.rit.edu>
  11. Date: Fri, 22 Jan 1993 18:21:01 GMT
  12.  
  13.  
  14. In article <1993Jan22.060311.5226@cs.rit.edu>,
  15. whd0675@cs.rit.edu (Walter H Dick, III) writes:
  16. |>
  17. |>A statement in VAXC such as:
  18. |>
  19. |>   i = (x + 511) / 512;
  20. |>
  21. |>generates ten or so instructions.  Is there anyway to get it to generate:
  22. |>
  23. |>   ADDL3  #511,x,R0
  24. |>   DIVL3  R0,#512,i
  25.  
  26. Under VAX C V3.2-044, I get an ADDL3 followed by a DIVL2 for this.  How are
  27. variables i and x declared in this program?
  28.  
  29. --PSW
  30.