Devel-XSCover

 view release on metacpan or  search on metacpan

lib/Devel/Cover/Report/XSCover.pm  view on Meta::CPAN

(function(){
var root=document.documentElement;
try{var saved=localStorage.getItem('xs-cover-theme');if(saved)root.setAttribute('data-theme',saved)}catch(e){}
var theme=document.getElementById('theme');
if(theme)theme.onclick=function(){var cur=root.getAttribute('data-theme');var dark=cur?cur==='dark':window.matchMedia('(prefers-color-scheme: dark)').matches;var next=dark?'light':'dark';root.setAttribute('data-theme',next);try{localStorage.setItem('...
var files=document.getElementById('files');
if(files){
var ths=files.querySelectorAll('thead th');
Array.prototype.forEach.call(ths,function(th,i){th.onclick=function(){var num=th.getAttribute('data-sort')==='num';var body=files.tBodies[0];var rows=Array.prototype.slice.call(body.rows);var asc=th.getAttribute('data-dir')!=='asc';Array.prototype.fo...
function key(r){var c=r.cells[i];var v=c.getAttribute('data-v');if(v===null)v=c.textContent.trim();return num?parseFloat(v):v.toLowerCase()}
rows.sort(function(a,b){var x=key(a),y=key(b);if(num){if(isNaN(x))x=-1;if(isNaN(y))y=-1;return asc?x-y:y-x}return asc?x.localeCompare(y):y.localeCompare(x)});
rows.forEach(function(r){body.appendChild(r)})}});
var filter=document.getElementById('filter');
if(filter)filter.oninput=function(){var q=filter.value.toLowerCase();Array.prototype.forEach.call(files.tBodies[0].rows,function(r){r.hidden=q!==''&&r.cells[0].textContent.toLowerCase().indexOf(q)<0})};
}
Array.prototype.forEach.call(document.querySelectorAll('input[data-crit]'),function(c){c.onchange=function(){root.classList.toggle('hide-'+c.getAttribute('data-crit'),!c.checked)}});
var miss=Array.prototype.slice.call(document.querySelectorAll('tr.miss')),at=-1;
Array.prototype.forEach.call(document.querySelectorAll('tr.miss'),function(r){r.onclick=function(e){if(e.target.closest('details'))return;var w=r.nextElementSibling;if(w&&w.classList.contains('why'))w.classList.toggle('open')}});
document.addEventListener('keydown',function(e){if(e.target&&(e.target.tagName==='INPUT'||e.target.tagName==='TEXTAREA'))return;if(e.key!=='n'&&e.key!=='p')return;if(!miss.length)return;at=e.key==='n'?(at+1)%miss.length:(at-1+miss.length)%miss.length...
})();
</script>

t/fixtures/gcov/gcc/Spike.gcov.txt  view on Meta::CPAN

        -: 3448:S_lossless_NV_to_IV(const NV nv, IV *ivp)
        -: 3449:{
        -: 3450:    /* This function determines if the input NV 'nv' may be converted without
        -: 3451:     * loss of data to an IV.  If not, it returns FALSE taking no other action.
        -: 3452:     * But if it is possible, it does the conversion, returning TRUE, and
        -: 3453:     * storing the converted result in '*ivp' */
        -: 3454:
        -: 3455:    PERL_ARGS_ASSERT_LOSSLESS_NV_TO_IV;
        -: 3456:
        -: 3457:#  if defined(NAN_COMPARE_BROKEN) && defined(Perl_isnan)
        -: 3458:    /* Normally any comparison with a NaN returns false; if we can't rely
        -: 3459:     * on that behaviour, check explicitly */
        -: 3460:    if (UNLIKELY(Perl_isnan(nv))) {
        -: 3461:        return FALSE;
        -: 3462:    }
        -: 3463:#  endif
        -: 3464:
        -: 3465:#  ifndef NV_PRESERVES_UV
        -: 3466:    STATIC_ASSERT_STMT(((UV)1 << NV_PRESERVES_UV_BITS) - 1 <= (UV)IV_MAX);
        -: 3467:#  endif
        -: 3468:
        -: 3469:    /* Written this way so that with an always-false NaN comparison we
        -: 3470:     * return false */
        -: 3471:    if (
        -: 3472:#  ifdef NV_PRESERVES_UV
        -: 3473:        LIKELY(nv >= (NV) IV_MIN) && LIKELY(nv < IV_MAX_P1) &&
        -: 3474:#  else
        -: 3475:        /* If the condition below is not satisfied, lower bits of nv's
        -: 3476:         * integral part is already lost and accurate conversion to integer
        -: 3477:         * is impossible.
        -: 3478:         * Note this should be consistent with S_sv_2iuv_common in sv.c. */
        -: 3479:        Perl_fabs(nv) < (NV) ((UV)1 << NV_PRESERVES_UV_BITS) &&

t/fixtures/gcov/llvm/Spike.gcov.txt  view on Meta::CPAN

        -: 3373:S_lossless_NV_to_IV(const NV nv, IV *ivp)
        -: 3374:{
        -: 3375:    /* This function determines if the input NV 'nv' may be converted without
        -: 3376:     * loss of data to an IV.  If not, it returns FALSE taking no other action.
        -: 3377:     * But if it is possible, it does the conversion, returning TRUE, and
        -: 3378:     * storing the converted result in '*ivp' */
        -: 3379:
        -: 3380:    PERL_ARGS_ASSERT_LOSSLESS_NV_TO_IV;
        -: 3381:
        -: 3382:#  if defined(NAN_COMPARE_BROKEN) && defined(Perl_isnan)
        -: 3383:    /* Normally any comparison with a NaN returns false; if we can't rely
        -: 3384:     * on that behaviour, check explicitly */
        -: 3385:    if (UNLIKELY(Perl_isnan(nv))) {
        -: 3386:        return FALSE;
        -: 3387:    }
        -: 3388:#  endif
        -: 3389:
        -: 3390:#  ifndef NV_PRESERVES_UV
        -: 3391:    STATIC_ASSERT_STMT(((UV)1 << NV_PRESERVES_UV_BITS) - 1 <= (UV)IV_MAX);
        -: 3392:#  endif
        -: 3393:
        -: 3394:    /* Written this way so that with an always-false NaN comparison we
        -: 3395:     * return false */
        -: 3396:    if (
        -: 3397:#  ifdef NV_PRESERVES_UV
        -: 3398:        LIKELY(nv >= (NV) IV_MIN) && LIKELY(nv < IV_MAX_P1) &&
        -: 3399:#  else
        -: 3400:        /* If the condition below is not satisfied, lower bits of nv's
        -: 3401:         * integral part is already lost and accurate conversion to integer
        -: 3402:         * is impossible.
        -: 3403:         * Note this should be consistent with S_sv_2iuv_common in sv.c. */
        -: 3404:        Perl_fabs(nv) < (NV) ((UV)1 << NV_PRESERVES_UV_BITS) &&

xt/spike/ppport.h  view on Meta::CPAN

    s++; if (s == send || (*s != 'F' && *s != 'f')) return 0;
    s++; if (s < send && (*s == 'I' || *s == 'i')) {
      s++; if (s == send || (*s != 'N' && *s != 'n')) return 0;
      s++; if (s == send || (*s != 'I' && *s != 'i')) return 0;
      s++; if (s == send || (*s != 'T' && *s != 't')) return 0;
      s++; if (s == send || (*s != 'Y' && *s != 'y')) return 0;
      s++;
    }
    sawinf = 1;
  } else if (*s == 'N' || *s == 'n') {
    /* XXX TODO: There are signaling NaNs and quiet NaNs. */
    s++; if (s == send || (*s != 'A' && *s != 'a')) return 0;
    s++; if (s == send || (*s != 'N' && *s != 'n')) return 0;
    s++;
    sawnan = 1;
  } else
    return 0;

  if (sawinf) {
    numtype &= IS_NUMBER_NEG; /* Keep track of sign  */
    numtype |= IS_NUMBER_INFINITY | IS_NUMBER_NOT_INT;



( run in 1.920 second using v1.01-cache-2.11-cpan-60884a8df76 )