2010/1/5 Cactus <[email protected]>:
>
>
> On Jan 5, 12:27 pm, Bill Hart <[email protected]> wrote:
>> I assume this is on 64 bit Windows? I'll open a ticket.
>>
>> #273
>
> I have solved it - the count leading/trailing zeroes macros on Windows
> were unsafe to use with long long result types (its the 32/64 bit int
> issue).
>
> I really should use inlines instead - nowadays there is no excuse for
> not doing so and macros are so unsafe.

I'm really amazed that didn't trigger bugs elsewhere. Most of MPIR
relies on that macro!

We ought to have tests for those. I wrote some for FLINT-Lite. Perhaps
I will port them across.

>
> I have not solved the memory issue though - it almost works but one
> test fails when MPIR asks for a realloc from 8 bytes to 1 byte - I
> know where this failure occurs but I haven't a clue about solving it
> apart from a hack to ignore realloc requests below, say, 16 bytes.

Yeah, that sure is a puzzle. The other strategy is to figure out why
MPIR would consider that a bug and perhaps change the test. I would be
reluctant to do that however unless we could be sure why the test was
added in the first place.

Bill.

>
>  Brian
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "mpir-devel" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/mpir-devel?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.


Reply via email to