Homec4science

Use a templated helper to wrap the cast

Authored by Mark Mentovai <mark@chromium.org> on Nov 12 2015, 00:26.

Description

Use a templated helper to wrap the cast

The helper needs to be templated because its argument type can’t be
known. FloatingPointTest is instantiated with RawType = float and
RawType = double, so Bits will be an unsigned 32-bit or 64-bit type.
size_t will be either 32 or 64 bits depending on the system’s
definition, typically based on pointer size.

Details

Committed
Mark Mentovai <mark@chromium.org>Nov 12 2015, 00:26
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:cbce23fb8670: Leave decltype(max_ulps_) alone and cast, not sure this is better
Branches
Unknown
Tags
Unknown

Event Timeline

Mark Mentovai <mark@chromium.org> committed R9484:cfe466a0a753: Use a templated helper to wrap the cast (authored by Mark Mentovai <mark@chromium.org>).Nov 12 2015, 00:26