remove zero() and bits() from hfloat

pull/25467/head
fengyuentau 8 months ago
parent c28342f7f2
commit 65d86b2628
  1. 28
      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;

Loading…
Cancel
Save