LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

even or uneven

Interesting detail: measured timings depend on the order of the tests in the sequence. Try switching frames 1 and 3, the results will look different. Maybe its better to have all implementations in the same frame (case structure with enum or so).
Anyway, on my system DIV and AND are very close in time consumption. AND tends to be a bit faster (and its definitely the nicer solution).
0 Kudos
Message 11 of 13
(508 Views)
Hi Tomi,
I noticed this too, that conversion from I32 <--> U32 is just a typecast. When you convert a -1 to U32, it's 4 Billion-something (2^32 -1) and it is not truncated to zero. But if you convert a floating point value (e.g. a Sgl, it's stored in 32 Bit too). See the attached pictures.

 
Greets, Dave

Message Edited by daveTW on 09-12-2006 09:56 PM

Greets, Dave
Download All
0 Kudos
Message 12 of 13
(483 Views)

Hi Dave,

I agree with You...

Regards

  Tomi

 

0 Kudos
Message 13 of 13
(469 Views)