diff options
author | smikler <smikler@yandex-team.ru> | 2022-02-10 16:49:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:32 +0300 |
commit | e4f0fd4ab53ca40eb91e750cf3e7f76c21e930db (patch) | |
tree | afee3c8173a0960bf439959f26e7624d1212e11a /library/cpp/packedtypes/packedfloat.h | |
parent | 1503061b80644305b2e6dd1327b57118e35ebd31 (diff) | |
download | ydb-e4f0fd4ab53ca40eb91e750cf3e7f76c21e930db.tar.gz |
Restoring authorship annotation for <smikler@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/packedtypes/packedfloat.h')
-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 f178912ed3..51d8821b13 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; +} |