The best I can think of is the IC code belowIt allows me to get the same output as you, but I don't know that it proves the problem is in SvNV() because it also avoids sv_setnv().
And I've been assuming that the problem is inside sv_setnv().
I'll post a bug report (referencing this thread) later today and report the developments from that report back to this thread.
In the meantime, I'm happy to continue this discussion - though my thick skull may continue to defy the penetration of the points you make ;-)
With the code you just provided, running
Devel::Peek::Dump($snan); crashes - which is a pity, because I would have liked to see more of what is in that variable.
And
print $snan; outputs the same as
pack 'd' done on a signalling NaN (that has the 7ff0000000000001 format).
The last line of code crashes for me (on a 32-bit perl that has quad formatting) - but that's no issue as the previous code had displayed:
NaN
7ff0000000000001
and it was nice to see 7ff0000000000001 for a change.
The CCFLAGS setting in the I::C config has no impact afaict. (I assume it's a leftover from a previous exercise - and mention it only in case it should have provided something significant.)
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.