|
Server : LiteSpeed System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : dewac4139 ( 1077) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /lib/x86_64-linux-gnu/perl5/5.34/auto/NetAddr/IP/UtilPP/ |
Upload File : |
# NOTE: Derived from ../../blib/lib/NetAddr/IP/UtilPP.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package NetAddr::IP::UtilPP;
#line 333 "../../blib/lib/NetAddr/IP/UtilPP.pm (autosplit into ../../blib/lib/auto/NetAddr/IP/UtilPP/notcontiguous.al)"
sub notcontiguous {
_deadlen(length($_[0]))
if length($_[0]) != 16;
my @ua = unpack('N4', ~$_[0]);
my $count;
for ($count = 128;$count > 0; $count--) {
last unless $ua[3] & 1;
$ua[3] >>= 1;
$ua[3] |= 0x80000000 if $ua[2] & 1;
$ua[2] >>= 1;
$ua[2] |= 0x80000000 if $ua[1] & 1;
$ua[1] >>= 1;
$ua[1] |= 0x80000000 if $ua[0] & 1;
$ua[0] >>= 1;
}
my $spurious = $ua[0] | $ua[1] | $ua[2] | $ua[3];
return $spurious unless wantarray;
return ($spurious,$count);
}
# end of NetAddr::IP::UtilPP::notcontiguous
1;