| 1 | package Math::Int64::native_if_available; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 2 | ▶ | use Math::Int64 (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 2 | ▶ | sub import { | ||||||||||||||||||||||||||
|
Subroutine
import: called CC=3 SCAR=12.0
| |||||||||||||||||||||||||||||
| 9 | 2 | ▶ | if (Math::Int64::_backend() eq 'IV' and $] >= 5.008) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
Math::Int64::_backend() eq "IV" and $] >= "5.008"
MC/DC0%0/2
Math::Int64::_backend() eq "IV" and $] >= "5.008"
Math::Int64::_backend() eq "IV"
$] >= "5.008"
Truth table33%1/3
A and B
A= Math::Int64::_backend() eq "IV"B= $] >= "5.008"
| |||||||||||||||||||||||||||||
| 10 | 2 | Math::Int64::_set_may_use_native(1); | |||||||||||||||||||||||||||
| 11 | 2 | $^H{'Math::Int64::native_if_available'} = 1; | |||||||||||||||||||||||||||
| 12 | 2 | goto &Math::Int64::_check_pragma_compatibility; | |||||||||||||||||||||||||||
| 13 | } | ||||||||||||||||||||||||||||
| 14 | } | ||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||
| 16 | 0 | ▶ | sub unimport { | ||||||||||||||||||||||||||
|
Subroutine
unimport: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 17 | 0 | undef $^H{'Math::Int64::native_if_available'}; | |||||||||||||||||||||||||||
| 18 | } | ||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 2 | 1; | |||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | # ABSTRACT: Use the native Perl 64-bit integer implementation when available | ||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | __END__ | ||||||||||||||||||||||||||||