#14098: zn_poly-0.9.p9 fails at least one its tests on power7
---------------------------+------------------------------------------------
Reporter: fbissey | Owner: drkirkby
Type: defect | Status: new
Priority: major | Milestone: sage-5.7
Component: porting | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------+------------------------------------------------
Comment (by fbissey):
On power7 it appears that ZNP_mpn_smp_kara_thresh is equal to SIZE_MAX
which according to /usr/include/stdint.h is
{{{
/* Limit of `size_t' type. */
# if __WORDSIZE == 64
# define SIZE_MAX (18446744073709551615UL)
# else
# define SIZE_MAX (4294967295U)
# endif
}}}
random_ulong is defined by
{{{
ulong
random_ulong (ulong max)
{
return gmp_urandomm_ui (randstate, max);
}
}}}
so n needs to be size_t which is at most SIZE_MAX but the test generate a
random number between 0 and 3 * SIZE_MAX + 2.
<sarcasm>
Oh dear! I wonder why that doesn't work.
</sarcasm>
I guess it is potentially fine if ZNP_mpn_smp_kara_thresh is not SIZE_MAX,
I don't know how it is on other systems.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14098#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.