| 1 | package Linux::Perl::Base::BitsTest; | ||||||||||
| 2 | |||||||||||
| 3 | 14 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 14 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 14 | ▶ | use constant _PERL_CAN_64BIT => !!do { local $@; eval { pack 'Q' } }; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 34 | ▶ | sub _PACK_u64 { | ||||||||
|
Subroutine
_PACK_u64: called CC=2 SCAR=14.0
| |||||||||||
| 9 | 34 | return 'Q' if _PERL_CAN_64BIT(); | |||||||||
| 10 | |||||||||||
| 11 | 0 | require Linux::Perl::Endian; | |||||||||
| 12 | 0 | ▶ | return Linux::Perl::Endian::SYSTEM_IS_BIG_ENDIAN() ? 'xxxxL!' : 'L!xxxx'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 6 | ▶ | sub _PACK_i64 { | ||||||||
|
Subroutine
_PACK_i64: called CC=2 SCAR=14.0
| |||||||||||
| 16 | 6 | return 'q' if _PERL_CAN_64BIT(); | |||||||||
| 17 | |||||||||||
| 18 | 0 | require Linux::Perl::Endian; | |||||||||
| 19 | 0 | ▶ | return Linux::Perl::Endian::SYSTEM_IS_BIG_ENDIAN() ? 'xxxxl!' : 'l!xxxx'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 14 | 1; | |||||||||