Hi Rob,

Somewhere in that commit message I think was something like "I have no idea 
what will happen on a 32-bit system.  Good luck!"

So obviously I hit something there.  Will look into it in the next day or two.

cheers,
Derek

> On Mar 6, 2015, at 9:08 PM, sisyph...@optusnet.com.au wrote:
> 
> -----Original Message----- 
> From: sisyph...@optusnet.com.au
> Sent: Saturday, March 07, 2015 2:09 PM
> To: pdl-gene...@lists.sourceforge.net ; pdl-devel@lists.sourceforge.net
> Subject: Re: [Pdl-general] CHM/PDL-2.007_12.tar.gz released to CPAN
> 
>> I've just hit a failure with test 51 in t/ops.t - so I'll take a look at 
>> that.
> 
> This test fails in exactly the same way on PDL-2.007 - so the behaviour is 
> by no means new. (It's just that this is the first time this test has been 
> included.)
> 
> This failing test wants to check that double($INT_MAX*4)%2 == 0, which seems 
> reasonable.
> 
> $INT_MAX is 2147483647
> double($INT_MAX) * 4 is 8589934588
> 
> So far, so good.
> But (double($INT_MAX) * 4) % 2 is 12884901884
> 
> Looking at the git log, Derek has:
> 
> 1) added a Q_MOD macro with internal typecasting to (long long).
> 
> 2) added some tests for cases where X/N > INT_MAX
>    Looks like this is one of those additional tests.
> 
> 3) rewrote and extended the modulus tests so they are done for each datatype
> 
> 4) added a N==0 conditional to the unsigned modulus macro, the absence of 
> which was causing byte(5)%0 to hang.
> 
> 5) changed the typecast in the MOD macro from (int) to (long); the previous 
> version wasn't sufficient.
>    This shouldn't be relevant to the problem as int and long are the same 
> size (for this configuration).
> 
> Derek, you're already familiar with these workings. Can you see what might 
> need to be done ?
> 
> This is on a 32-bit perl (5.16.0 - though I expect it will affect other 
> 32-bit perl versions, too) where ivsize is 4, ivtype is long, nvsize is 8 
> and nvtype is double.
> 
> Cheers,
> Rob
> 
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> pdl-general mailing list
> pdl-gene...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdl-general
> 


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to