octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3.0.1 release?


From: Michael Goffioul
Subject: Re: 3.0.1 release?
Date: Tue, 8 Apr 2008 15:44:50 +0200

On Tue, Apr 8, 2008 at 3:25 PM, Bateman David-ADB014
<address@hidden> wrote:
>
>
>
> The code
>
>  #include <iostream>
>  int main (void)
>  {
>          uint64_t a = 0x001FFFFFFFFFFFFFUL^0x0007FFFFFFFFFFFFUL;
>          std::cerr << a  << std::endl;
>          return 0;
>  }
>
>  returns 6755399441055744, and I suspect it does something else under MSVC

I added the following line (because MSVC does not have uint64_t, and it is the
way it is done with octave):

typedef unsigned long long uint64_t;

The result is

6755399441055744

It seems to match what you expect.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]