Re: detecting two's complement arithmetics

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Mycroft Holmes (m.holmes_at_nospam.it)
Date: 11/02/04


Date: Tue, 2 Nov 2004 17:35:48 +0100


> What do you mean by an unsigned two's complement integer?

By definition, -x is the same as ~x+1.
I have some templates where T is granted to be an integer and I call
T::unary minus.

I know that Cray integer arithmetics is a bit (!) different.
Unfortunately I don't happen to have one here...

> I guess in theory one integer type could be two's complement and another
> could be something else. That could break it.

true, but I'm testing all integers anyway.

-- 
 The set of solutions is never empty.
 Two solutions together form a new problem.
-- Mycroft Holmes


Relevant Pages

  • Re: Word shuts down when I click Tools
    ... In the box under Document Templates ... I added Com Add-Ins to the Tools list and opened it. ... Then I went to Tools, Option, File Locations. ... The others are named and are all empty) ...
    (microsoft.public.word.application.errors)
  • Re: In place upgrade Dapper=>Edgy=>Feisty
    ... Peter Garrett wrote: ... NoOp wrote: ... You can create a new empty page, ... one of the page templates. ...
    (Ubuntu)
  • Re: Everything you need can be found in this site.
    ... Once upon a time *Runnin' on Empty* wrote: ... variety of products. ... If it really is their own templates? ...
    (alt.html)
  • Re: row reproduction
    ... No, templates aren't bad. ... empty text if there's no entry in column C. ... >would like to modify a stock investment calulator so it will shorten/lengthen ...
    (microsoft.public.excel.misc)
  • Re: WordXP - DefaultFilePath
    ... > the user templates path is normally the same as NormalTemplate.Path (but not ... > check to see whether the path is empty and have a defined action for this ... When you code your macros think about running some error code first to ...
    (microsoft.public.word.vba.general)