From 65d86b26285b6731bab057b47f4d7b541896748b Mon Sep 17 00:00:00 2001 From: fengyuentau Date: Mon, 22 Apr 2024 14:49:51 +0800 Subject: [PATCH] remove zero() and bits() from hfloat --- modules/core/include/opencv2/core/cvdef.h | 28 ----------------------- 1 file changed, 28 deletions(-) diff --git a/modules/core/include/opencv2/core/cvdef.h b/modules/core/include/opencv2/core/cvdef.h index 4c27d2fae5..596d6b03bd 100644 --- a/modules/core/include/opencv2/core/cvdef.h +++ b/modules/core/include/opencv2/core/cvdef.h @@ -822,26 +822,6 @@ public: hfloat() : h(0) {} explicit hfloat(float x) { h = (__fp16)x; } operator float() const { return (float)h; } - static hfloat fromBits(ushort w) - { - Cv16suf u; - u.u = w; - hfloat result; - result.h = u.h; - return result; - } - static hfloat zero() - { - hfloat result; - result.h = (__fp16)0; - return result; - } - ushort bits() const - { - Cv16suf u; - u.h = h; - return u.u; - } protected: __fp16 h; @@ -898,14 +878,6 @@ protected: #endif } - static hfloat zero() - { - hfloat result; - result.w = (ushort)0; - return result; - } - - ushort bits() const { return w; } protected: ushort w;