MCPcopy Create free account
hub / github.com/apache/singa / operator-

Method operator-

include/half.hpp:1872–1880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1870 /// \param b second operand
1871 /// \return \a a - \a b
1872 friend f31 operator-(f31 a, f31 b)
1873 {
1874 int d = a.exp - b.exp, exp = a.exp;
1875 uint32 m = a.m - ((d<32) ? (b.m>>d) : 0);
1876 if(!m)
1877 return f31(0, -32);
1878 for(; m<0x80000000; m<<=1,--exp) ;
1879 return f31(m, exp);
1880 }
1881
1882 /// Multiplication operator.
1883 /// \param a first operand

Callers

nothing calls this directly

Calls 1

f31Class · 0.85

Tested by

no test coverage detected