diff options
author | smikler <smikler@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
commit | 0e68ae909d3b76a5a001a07880eb0010dec6b2ea (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/packedtypes | |
parent | e4f0fd4ab53ca40eb91e750cf3e7f76c21e930db (diff) | |
download | ydb-0e68ae909d3b76a5a001a07880eb0010dec6b2ea.tar.gz |
Restoring authorship annotation for <smikler@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/packedtypes')
-rw-r--r-- | library/cpp/packedtypes/packedfloat.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/packedtypes/packedfloat.h b/library/cpp/packedtypes/packedfloat.h index 51d8821b13..f178912ed3 100644 --- a/library/cpp/packedtypes/packedfloat.h +++ b/library/cpp/packedtypes/packedfloat.h @@ -178,7 +178,7 @@ inline constexpr float Frac2Float(T pf) { constexpr float multiplier = float(1.0 / Max<T>()); return pf * multiplier; } - + class TUi82FloatMapping { private: float Mapping[Max<ui8>() + 1] = {}; @@ -208,10 +208,10 @@ inline float Frac2Float(ui32 pf) = delete; template <class T> inline float FracOrFloatToFloat(T t) { - return Frac2Float(t); -} - + return Frac2Float(t); +} + template <> inline float FracOrFloatToFloat<float>(float t) { - return t; -} + return t; +} |