Merge pull request #6217 from krrishnarraj:master
This commit is contained in:
commit
a7d28f3b1f
@ -79,7 +79,8 @@ struct big_any_policy : typed_base_any_policy<T>
|
||||
{
|
||||
virtual void static_delete(void** x)
|
||||
{
|
||||
if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
|
||||
if (* x) delete (* reinterpret_cast<T**>(x));
|
||||
*x = NULL;
|
||||
}
|
||||
virtual void copy_from_value(void const* src, void** dest)
|
||||
{
|
||||
|
@ -1772,7 +1772,8 @@ cmpUlpsFlt_(const int* src1, const int* src2, size_t total, int imaxdiff, size_t
|
||||
for( i = 0; i < total; i++ )
|
||||
{
|
||||
int a = src1[i], b = src2[i];
|
||||
if( a < 0 ) a ^= C; if( b < 0 ) b ^= C;
|
||||
if( a < 0 ) a ^= C;
|
||||
if( b < 0 ) b ^= C;
|
||||
int diff = std::abs(a - b);
|
||||
if( realmaxdiff < diff )
|
||||
{
|
||||
@ -1794,7 +1795,8 @@ cmpUlpsFlt_(const int64* src1, const int64* src2, size_t total, int imaxdiff, si
|
||||
for( i = 0; i < total; i++ )
|
||||
{
|
||||
int64 a = src1[i], b = src2[i];
|
||||
if( a < 0 ) a ^= C; if( b < 0 ) b ^= C;
|
||||
if( a < 0 ) a ^= C;
|
||||
if( b < 0 ) b ^= C;
|
||||
double diff = fabs((double)a - (double)b);
|
||||
if( realmaxdiff < diff )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user