Browse Source

in ASin() and Gamma() there is used SetZeroNan() to suppress a warning about an uninitialized variable (for gcc)

git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@1229 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 2 years ago
parent
commit
aad580f51e
  1. 9
      tests2/Makefile
  2. 5
      ttmath/ttmath.h

9
tests2/Makefile

@ -1,6 +1,11 @@
#CC = g++
#CC = g++6
#CFLAGS = -Wall -pedantic -O3 -s -I.. -Wl,-rpath=/usr/local/lib/gcc6
#CFLAGS = -Wall -pedantic -O3 -DTTMATH_NOASM -s -I.. -Wl,-rpath=/usr/local/lib/gcc6
CC = clang++
CFLAGS = -Wall -pedantic -O2 -I..
CFLAGS = -Wall -pedantic -O3 -s -I..
#CFLAGS = -Wall -pedantic -O3 -DTTMATH_NOASM -s -I..
.SUFFIXES: .cpp .o

5
ttmath/ttmath.h

@ -873,7 +873,8 @@ namespace ttmath
if( err )
*err = err_improper_argument;
return result; // NaN is set by default
result.SetZeroNan();
return result;
}
if( x.IsSign() )
@ -2710,7 +2711,7 @@ namespace ttmath
if( n.IsZero() )
{
err_tmp = err_improper_argument;
result.SetNan();
result.SetZeroNan();
}
else
{

Loading…
Cancel
Save