File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -622,6 +622,7 @@ static int test_mp_invmod(void)
622
622
623
623
}
624
624
625
+ #if defined(__STDC_IEC_559__ ) || defined(__GCC_IEC_559 )
625
626
static int test_mp_set_double (void )
626
627
{
627
628
int i ;
@@ -632,7 +633,6 @@ static int test_mp_set_double(void)
632
633
}
633
634
634
635
/* test mp_get_double/mp_set_double */
635
- #if defined(__STDC_IEC_559__ ) || defined(__GCC_IEC_559 )
636
636
if (mp_set_double (& a , +1.0 /0.0 ) != MP_VAL ) {
637
637
printf ("\nmp_set_double should return MP_VAL for +inf" );
638
638
goto LBL_ERR ;
@@ -670,7 +670,6 @@ static int test_mp_set_double(void)
670
670
goto LBL_ERR ;
671
671
}
672
672
}
673
- #endif
674
673
675
674
mp_clear_multi (& a , & b , NULL );
676
675
return EXIT_SUCCESS ;
@@ -679,6 +678,7 @@ static int test_mp_set_double(void)
679
678
return EXIT_FAILURE ;
680
679
681
680
}
681
+ #endif
682
682
683
683
static int test_mp_get_u32 (void )
684
684
{
@@ -2112,7 +2112,9 @@ int unit_tests(int argc, char **argv)
2112
2112
T (mp_read_radix ),
2113
2113
T (mp_reduce_2k ),
2114
2114
T (mp_reduce_2k_l ),
2115
+ #if defined(__STDC_IEC_559__ ) || defined(__GCC_IEC_559 )
2115
2116
T (mp_set_double ),
2117
+ #endif
2116
2118
T (mp_signed_rsh ),
2117
2119
T (mp_sqrt ),
2118
2120
T (mp_sqrtmod_prime ),
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ PREFIX = c:\devel
14
14
CFLAGS = /Ox
15
15
16
16
#Compilation flags
17
- LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /W3 $(CFLAGS)
17
+ LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /Wall /wd4146 /wd4127 /wd4710 /wd4711 /wd4820 $(CFLAGS)
18
18
LTM_LDFLAGS = advapi32.lib
19
19
20
20
#Libraries to be created (this makefile builds only static libraries)
@@ -60,7 +60,7 @@ $(OBJECTS): $(HEADERS)
60
60
.c.obj:
61
61
$(CC) $(LTM_CFLAGS) /c $< /Fo$@
62
62
63
- #Create tomcrypt .lib
63
+ #Create tommath .lib
64
64
$(LIBMAIN_S): $(OBJECTS)
65
65
lib /out:$(LIBMAIN_S) $(OBJECTS)
66
66
You can’t perform that action at this time.
0 commit comments