Blame lib/Math/Int64/native_if_available.pm
|
Packit |
3f72c8 |
package Math::Int64::native_if_available;
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
use strict;
|
|
Packit |
3f72c8 |
use warnings;
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
use Math::Int64 ();
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
sub import {
|
|
Packit |
3f72c8 |
if (Math::Int64::_backend() eq 'IV' and $] >= 5.008) {
|
|
Packit |
3f72c8 |
Math::Int64::_set_may_use_native(1);
|
|
Packit |
3f72c8 |
$^H{'Math::Int64::native_if_available'} = 1;
|
|
Packit |
3f72c8 |
goto &Math::Int64::_check_pragma_compatibility;
|
|
Packit |
3f72c8 |
}
|
|
Packit |
3f72c8 |
}
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
sub unimport {
|
|
Packit |
3f72c8 |
undef $^H{'Math::Int64::native_if_available'};
|
|
Packit |
3f72c8 |
}
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
1;
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
# ABSTRACT: Use the native Perl 64-bit integer implementation when available
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
__END__
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
=encoding UTF-8
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
=head1 NAME
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
Math::Int64::native_if_available - Use the native Perl 64-bit integer implementation when available
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
=head1 SYNOPSIS
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
use Math::Int64 qw(uint64);
|
|
Packit |
3f72c8 |
use Math::Int64::native_if_available;
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
=head1 SEE ALSO
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
L<Math::Int64>.
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
=cut
|
|
Packit |
3f72c8 |
|
|
Packit |
3f72c8 |
|