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: Martin Helm
Subject: Re: 64 bit arithmetic operation on 32 bit machine
Date: Sat, 25 Feb 2012 16:36:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2

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]