BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

EXT has on Intel 32-bit 80-bits. On Sparc it had 128-bit but that was software emulated. On all other platforms including Intel 64-bit, EXT === DBL.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2491 of 2,635
(4,522 Views)

@rolfk wrote:

EXT has on Intel 32-bit 80-bits. On Sparc it had 128-bit but that was software emulated. On all other platforms including Intel 64-bit, EXT === DBL.


Right.  But on Intel machines, all FP operations are done internally with 80 bits; the extra (guard) bits ensuring that the result will be accurate to the full precision of a 64-bit FP number.  When you use EXT format, you have no guard bits, and (depending on the complexity of the calculation) the accumulated truncation errors can yield a result not much more accurate than a 64-bit FP number.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2492 of 2,635
(4,503 Views)

@paul_cardinale wrote:
Right.  But on Intel machines, all FP operations are done internally with 80 bits; the extra (guard) bits ensuring that the result will be accurate to the full precision of a 64-bit FP number.  When you use EXT format, you have no guard bits, and (depending on the complexity of the calculation) the accumulated truncation errors can yield a result not much more accurate than a 64-bit FP number.

There is very anecdotal evidence that this is not guaranteed, for example in a thread switch these registers get swapped out as 64bits, and the extra precision is irreversibly lost. (I think it is even more noticeable if you use the parallel FOR loop).

0 Kudos
Message 2493 of 2,635
(4,421 Views)

Oh wow!!!!!! (seen here!)

 

 

altenbach_0-1680887580422.png

 

Message 2494 of 2,635
(4,154 Views)
0 Kudos
Message 2495 of 2,635
(4,072 Views)

@AeroSoul wrote:

What the...


That is what happens when you give LabVIEW to a C coder with a D average.


"Should be" isn't "Is" -Jay
Message 2496 of 2,635
(4,044 Views)
0 Kudos
Message 2497 of 2,635
(3,960 Views)

Oh wow!
That's just there to make you want to never work on the project - ever! and get the original coder back to redo the code. That's job retention by obfuscation!

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 2498 of 2,635
(3,957 Views)

The 2D array is just a constant after the first value right?

Matt J | National Instruments | CLA
0 Kudos
Message 2499 of 2,635
(3,951 Views)

@Jacobson-ni wrote:

The 2D array is just a constant after the first value right?


I don't think we can draw any conclusions because even the intent is not clear. 

 

It's not even really a 2D array, just data that would fit equally well into a 1D array caused by the fact that we are autoindexing on the backwards wires creating an array of one element (4, or 3). I am also pretty sure the feedback node was inserted automatically because they created a loop (see also).

0 Kudos
Message 2500 of 2,635
(3,924 Views)