Skip to content
Snippets Groups Projects
Commit e3960a0a authored by Max Horn's avatar Max Horn
Browse files

switch receive code to ints instead of long

This results in much smaller and more efficient machine code.

It should not affect correctness, either: Indeed, the delay value
is computed from dividing an int by another int, so it fits into an int.
The delayTolerance is a fraction of that int, so it also fits.
Intermediate results like delay * pro.zero.high are ints because they
are equal to
 timings[0] * pro.zero.high / pro.syncFactor.low
but syncfactor.low is always larger (at least in all current protocols)
than any other high/low value.
parent d504905e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment