home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / c / 3199 < prev    next >
Encoding:
Text File  |  1992-12-13  |  2.0 KB  |  41 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!wupost!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!dbased.nuo.dec.com!e2big.mko.dec.com!jrdzzz.jrd.dec.com!jit533.jit.dec.com!diamond
  3. From: diamond@jit533.jit.dec.com (Norman Diamond)
  4. Subject: Re: Is INT_MAX<<1 defined?
  5. Message-ID: <Bz854A.D10@jrd.dec.com>
  6. Sender: usenet@jrd.dec.com (USENET News System)
  7. Nntp-Posting-Host: jit533.jit.dec.com
  8. Reply-To: diamond@jit.dec.com (Norman Diamond)
  9. Organization: Digital Equipment Corporation Japan , Tokyo
  10. References: <723345673snx@genesis.demon.co.uk> <2337@sdrc.COM> <Byvxys.KKz@twwells.com> <bkt_QYTN@twinsun.com> <1992Dec1.110325.29337@dg-rtp.dg.com> <19482@ksr.com> <bkvw0kfF@twinsun.com> <19685@ksr.com> <1992Dec7.163618.26955@crd.ge.com> <1992Dec1.050540 <1992Dec8.1 <1992Dec11.173855.19517@crd.ge.com>
  11. Date: Mon, 14 Dec 1992 00:52:58 GMT
  12. Lines: 27
  13.  
  14. In article <1992Dec11.173855.19517@crd.ge.com> volpe@ausable.crd.ge.com writes:
  15. >Section 3.3 says "These [bitwise] operators return values that depend on the
  16. >internal representations of integers, and thus have implementation defined
  17. >aspects for signed types."
  18.  
  19. Yeah, this means that even when the operation succeeds, the resulting VALUE
  20. still has implementation defined aspects.  It doesn't say anything about
  21. failed operations.
  22.  
  23. >The standard makes an explicit statement showing a qualitative difference
  24. >between bitwise operators and non-bitwise operators,
  25.  
  26. Yes.
  27.  
  28. >indicating that bitwise operators operate in "representation-space" while
  29. >other operators operate in "math-space". 
  30.  
  31. I don't think the standard says this so clearly.  We can't even rely on the
  32. base document to answer this, because in pre-standard days of a substitute
  33. assembly language, I think ALL operators were regarded as operating in
  34. representation-space.  If you think the standard maintained the old concept
  35. in a fragment of C's operations, I think you have to ask for an interpretation
  36. ruling.
  37. --
  38. Norman Diamond       diamond@jit081.enet.dec.com
  39. If this were the company's opinion, I wouldn't be allowed to post it.
  40. "It's been a lovely recession."
  41.