1. update run-test.py for Windows build

2. remove test code in invert.c in Windows build
This commit is contained in:
gladman 2009-12-09 20:02:31 +00:00
parent 52a2c8b839
commit aaf7949430
2 changed files with 8 additions and 4 deletions

View File

@ -68,15 +68,15 @@ for i in prj_list :
if output :
print(' ', output.decode(), end = '')
else :
print("Build failure for %s" % i)
print("Build failure for {0}".format(i))
build_fail += 1
print(build_fail + run_ok + run_fail, "tests:")
if build_fail > 0 :
print("\t%i failed to build" % build_fail)
print("\t{0} failed to build".format(build_fail))
if run_ok > 0 :
print("\t%i ran correctly" % run_ok)
print("\t{0} ran correctly".format(run_ok))
if run_fail > 0 :
print("\t%i failed" % run_fail)
print("\t{0} failed".format(run_fail))
if len(sys.argv) == 1 :
try :
input(".. completed - press ENTER")

View File

@ -33,6 +33,8 @@ MA 02110-1301, USA. */
#define ONE (mp_limb_t) 1
#define WRAP_AROUND_BOUND 1500
#ifndef _MSC_VER
int
test_invert (mp_ptr xp, mp_srcptr ap, mp_size_t n)
{
@ -62,6 +64,8 @@ test_invert (mp_ptr xp, mp_srcptr ap, mp_size_t n)
return res;
}
#endif
/* Input: A = {ap, n} with most significant bit set.
Output: X = B^n + {xp, n} where B = 2^GMP_NUMB_BITS.