[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 3.0.1 release?
From: |
Marco Atzeri |
Subject: |
Re: 3.0.1 release? |
Date: |
Thu, 10 Apr 2008 13:00:28 +0200 (CEST) |
--- Michael Goffioul ha scritto:
> On Tue, Apr 8, 2008 at 4:41 PM, David Bateman
> < wrote:
> > Then I'm not sure I understand, it is clear that
> the example
> >
> >
> > Bmax = bitmax;
> > A = bitshift(Bmax,-2);
> > bitxor(cast(A,'uint64'),cast(Bmax,'uint64'))
> >
> >
> > Is incorrect in the windows version (I used your
> 3.0 MSVC binary) of
> > Octave, and that corresponds to the piece of code
> I sent.. Can you
> > confirm that this is incorrect under MSVC (that
> is it doesn't return
> > 6755399441055744). I checked the casts above
> independently and they are
> > returning the correct answers, so the issue is in
> int main (void)
> {
> uint64_t a =
> 0x001FFFFFFFFFFFFFUL^0x0007FFFFFFFFFFFFUL;
> std::cerr << 0x001FFFFFFFFFFFFFUL << std::endl;
> std::cerr << 0x0007FFFFFFFFFFFFUL << std::endl;
> std::cerr << a << std::endl;
> return 0;
> }
>
> When executed, it gives:
>
> 9007199254740991
> 2251799813685247
> 6755399441055744
>
> Then I executed the following in octave:
>
> Bmax = bitmax;
> A = bitshift(Bmax,-2);
> cast(Bmax,'uint64'), cast(A,'uint64'),
> bitxor(cast(A,'uint64'),cast(Bmax,'uint64'))
>
> which returned
>
> ans = 9007199254740992
> ans = 2251799813685247
> ans = 11258999068426239
>
> Notice the 1-bit difference in the first entry. If
> I'm right, they
> should be equivalent,
> right?
>
> Michael.
>
FYI
on cygwin the result is:
9007199254740991
2251799813685247
6755399441055744
Regards
Marco
Inviato da Yahoo! Mail.
La casella di posta intelligente.
http://it.docs.yahoo.com/mail/overview/index.html
- Re: 3.0.1 release?, (continued)
- Re: 3.0.1 release?, David Bateman, 2008/04/08
- Re: 3.0.1 release?, Michael Goffioul, 2008/04/08
- Re: 3.0.1 release?, David Bateman, 2008/04/08
- Re: 3.0.1 release?, John W. Eaton, 2008/04/08
- Re: 3.0.1 release?, Michael Goffioul, 2008/04/08
- Re: 3.0.1 release?, John W. Eaton, 2008/04/08
- Re: 3.0.1 release?, Michael Goffioul, 2008/04/09
- Re: 3.0.1 release?, David Bateman, 2008/04/09
- Re: 3.0.1 release?, Michael Goffioul, 2008/04/09
- Re: 3.0.1 release?, John W. Eaton, 2008/04/09
- Re: 3.0.1 release?,
Marco Atzeri <=
- Re: 3.0.1 release?, Shai Ayal, 2008/04/08
- Re: 3.0.1 release?, Thomas Weber, 2008/04/09
Re: 3.0.1 release?, David Bateman, 2008/04/03