9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] acid "integer"
@ 2011-07-29 12:36 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2011-07-29 12:36 UTC (permalink / raw)
  To: 9fans

i was looking for an a definition of acid(1)'s integer but i
must have missed it.  i had always assumed that they were
intended to be unsigned.  evidently there is some signed
arithmetic going on, and this is calculations are subject to
the local compiler's rounding rules.  i suppose this is correct
if acid integers are supposed to be signed.

so the question is: are they?

- erik

-----

plan 9:

acid: 0xffffffff * 0xffffffff
0xfffffffe00000001

p9p:

acid;  0xffffffff * 0xffffffff
 0xffffffff * 0xffffffff
0x00000001

just to make sure this isn't a printing issue

acid; x = 0xffffffff * 0xffffffff
acid; x==1
1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-29 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-29 12:36 [9fans] acid "integer" erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).