aboutsummaryrefslogtreecommitdiff
path: root/util/wireshark
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-08-01 01:03:51 -0400
committerkwolekr <kwolekr@minetest.net>2015-08-01 19:30:08 -0400
commit42cf5e972d1e27a92048712bc79806e1a088b96c (patch)
tree06a717e369b1d0ba5a9d5dfb2e628498d724ade1 /util/wireshark
parentbf991bde45b279b40fdfa6c6b6fc6e4dd265c7ee (diff)
downloadminetest-42cf5e972d1e27a92048712bc79806e1a088b96c.tar.gz
minetest-42cf5e972d1e27a92048712bc79806e1a088b96c.tar.bz2
minetest-42cf5e972d1e27a92048712bc79806e1a088b96c.zip
Improve accuracy and safety of float serialization
Multiplying by a factor of 1/1000.f (rather than dividing by 1000.f) directly introduces an error of 1 ULP. With this patch, an exact comparison of a floating point literal with the deserialized F1000 form representing it is now guaranteed to be successful. In addition, the maxmium and minimum safely representible floating point numbers are now well-defined as constants.
Diffstat (limited to 'util/wireshark')
0 files changed, 0 insertions, 0 deletions