help-octave
[Top][All Lists]
Advanced

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

Re: 64 bit arithmetic operation on 32 bit machine


From: Mircea Toma
Subject: Re: 64 bit arithmetic operation on 32 bit machine
Date: Sat, 25 Feb 2012 12:08:56 -0800 (PST)

I sent my question to a wrong address. my intention was for MinGW.
Sorry about that.
Mircea


From: Martin Helm <address@hidden>
To: Mircea Toma <address@hidden>
Cc: "address@hidden" <address@hidden>
Sent: Saturday, February 25, 2012 9:36 AM
Subject: Re: 64 bit arithmetic operation on 32 bit machine

Am 25.02.2012 15:56, schrieb Mircea Toma:
> There's a way to perform 64 bit arithmetic operation on 32 bit machine
> without
> explicit programing it; I mean a switch for compiler that enable some
> macro. I
> find out that what i declared long long cant be used to perform arithmetic
> operation like 63 shift or bitwise operation. The result is not what I
> expected.
> Thanks,
> Mircea
>
You do not need to recompile octave for that, use for example the uint64
type

example:
octave:1> a= uint64(7)
a = 7
octave:2> bitshift (a, 60)
ans = 8070450532247928832

If I understood wrong, please give an example of what you did, what it
gave you and what you would have expected.



reply via email to

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