mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-03 20:39:41 -05:00
The compiler cannot guess that tv_sec or tv_usec might have unused parts, so the multiply by 1000 and the divide by 1000 are both performed using 64-bit constants to stick to the common type. This is not needed since we only keep the final 32 bits, let's help the compiler here by casting these fields to uint. The tv_update_date() code is much cleaner (48 bytes smaller in the CAS loop) as it avoids some register spilling at a location where that's really unwanted. |
||
|---|---|---|
| .. | ||
| haproxy | ||
| import | ||