MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / RootCheckXZero

Function RootCheckXZero

extern/ttmath/ttmath.h:1971–1986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969
1970 template<class ValueType>
1971 bool RootCheckXZero(ValueType & x, ErrorCode * err)
1972 {
1973 if( x.IsZero() )
1974 {
1975 // root(0;index) is zero (if index!=0)
1976 // RootCheckIndexZero() must be called beforehand
1977 x.SetZero();
1978
1979 if( err )
1980 *err = err_ok;
1981
1982 return true;
1983 }
1984
1985 return false;
1986 }
1987
1988
1989 template<class ValueType>

Callers 1

RootFunction · 0.85

Calls 2

IsZeroMethod · 0.80
SetZeroMethod · 0.80

Tested by

no test coverage detected