require '_h2ph_pre.ph'; no warnings qw(redefine misc); if(!defined (&_BYTESWAP_H) && !defined (&_NETINET_IN_H) && !defined (&_ENDIAN_H)) { die("Never use <bits/byteswap.h> directly; include <byteswap.h> instead."); } unless(defined(&_BITS_BYTESWAP_H)) { eval 'sub _BITS_BYTESWAP_H () {1;}' unless defined(&_BITS_BYTESWAP_H); require 'features.ph'; require 'bits/types.ph'; require 'bits/wordsize.ph'; eval 'sub __bswap_constant_16 { my($x) = @_; eval q(( (((($x) >> 8) & 0xff) | ((($x) & 0xff) << 8)))); }' unless defined(&__bswap_constant_16); require 'bits/byteswap-16.ph'; eval 'sub __bswap_constant_32 { my($x) = @_; eval q((((($x) & 0xff000000) >> 24) | ((($x) & 0xff0000) >> 8) | ((($x) & 0xff00) << 8) | ((($x) & 0xff) << 24))); }' unless defined(&__bswap_constant_32); if(defined(&__GNUC__)) { if( &__GNUC_PREREQ (4, 3)) { eval 'sub __bswap_32 { my($__bsx) = @_; eval q({ &__builtin_bswap32 ($__bsx); }); }' unless defined(&__bswap_32); } elsif((defined(&__GNUC__) ? &__GNUC__ : undef) >= 2) { if((defined(&__WORDSIZE) ? &__WORDSIZE : undef) == 64|| (defined (&__i486__) || defined (&__pentium__) || defined (&__pentiumpro__) || defined (&__pentium4__) || defined (&__k8__) || defined (&__athlon__) || defined (&__k6__) || defined (&__nocona__) || defined (&__core2__) || defined (&__geode__) || defined (&__amdfam10__))) { eval 'sub __bswap_32 { my($x) = @_; eval q(\\"(assembly code)\\"); }' unless defined(&__bswap_32); } else { eval 'sub __bswap_32 { my($x) = @_; eval q(\\"(assembly code)\\"); }' unless defined(&__bswap_32); } } else { eval 'sub __bswap_32 { my($x) = @_; eval q(( &__extension__ ({ \'unsigned int __x\' = ($x); &__bswap_constant_32 ( &__x); }))); }' unless defined(&__bswap_32); } } else { eval 'sub __bswap_32 { my($__bsx) = @_; eval q({ &__bswap_constant_32 ($__bsx); }); }' unless defined(&__bswap_32); } if( &__GNUC_PREREQ (2, 0)) { eval 'sub __bswap_constant_64 { my($x) = @_; eval q(( &__extension__ (((($x) & 0xff00000000000000) >> 56) | ((($x) & 0xff000000000000) >> 40) | ((($x) & 0xff0000000000) >> 24) | ((($x) & 0xff00000000) >> 8) | ((($x) & 0xff000000) << 8) | ((($x) & 0xff0000) << 24) | ((($x) & 0xff00) << 40) | ((($x) & 0xff) << 56)))); }' unless defined(&__bswap_constant_64); if( &__GNUC_PREREQ (4, 3)) { eval 'sub __bswap_64 { my($__bsx) = @_; eval q({ &__builtin_bswap64 ($__bsx); }); }' unless defined(&__bswap_64); } elsif((defined(&__WORDSIZE) ? &__WORDSIZE : undef) == 64) { eval 'sub __bswap_64 { my($x) = @_; eval q(\\"(assembly code)\\"); }' unless defined(&__bswap_64); } else { eval 'sub __bswap_64 { my($x) = @_; eval q(( &__extension__ ({ \'union union\' { &__extension__ &__uint64_t &__ll; \'unsigned int __l\'[2]; } &__w, &__r; &if ( &__builtin_constant_p ($x)) ($__r->{__ll}) = &__bswap_constant_64 ($x); &else { ($__w->{__ll}) = ($x); ($__r->{__l[0]}) = &__bswap_32 ( ($__w->{__l[1]})); ($__r->{__l[1]}) = &__bswap_32 ( ($__w->{__l[0]})); } ($__r->{__ll}); }))); }' unless defined(&__bswap_64); } } elsif((defined(&__GLIBC_HAVE_LONG_LONG) ? &__GLIBC_HAVE_LONG_LONG : undef)) { eval 'sub __bswap_constant_64 { my($x) = @_; eval q((((($x) & 0xff00000000000000) >> 56) | ((($x) & 0xff000000000000) >> 40) | ((($x) & 0xff0000000000) >> 24) | ((($x) & 0xff00000000) >> 8) | ((($x) & 0xff000000) << 8) | ((($x) & 0xff0000) << 24) | ((($x) & 0xff00) << 40) | ((($x) & 0xff) << 56))); }' unless defined(&__bswap_constant_64); eval 'sub __bswap_64 { my($__bsx) = @_; eval q({ &__bswap_constant_64 ($__bsx); }); }' unless defined(&__bswap_64); } } 1;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
byteswap-16.ph | File | 730 B | 0644 |
|
byteswap.ph | File | 3.79 KB | 0644 |
|
endian.ph | File | 247 B | 0644 |
|
ioctl-types.ph | File | 1.72 KB | 0644 |
|
ioctls.ph | File | 3.74 KB | 0644 |
|
pthreadtypes.ph | File | 3.92 KB | 0644 |
|
select.ph | File | 1.36 KB | 0644 |
|
select2.ph | File | 490 B | 0644 |
|
sigaction.ph | File | 1.5 KB | 0644 |
|
sigcontext.ph | File | 860 B | 0644 |
|
siginfo.ph | File | 6.79 KB | 0644 |
|
signum.ph | File | 2.76 KB | 0644 |
|
sigset.ph | File | 2.99 KB | 0644 |
|
sigstack.ph | File | 408 B | 0644 |
|
sigthread.ph | File | 346 B | 0644 |
|
sockaddr.ph | File | 507 B | 0644 |
|
socket.ph | File | 12.27 KB | 0644 |
|
socket2.ph | File | 177 B | 0644 |
|
socket_type.ph | File | 766 B | 0644 |
|
syscall.ph | File | 73.15 KB | 0644 |
|
syslog-ldbl.ph | File | 353 B | 0644 |
|
syslog-path.ph | File | 363 B | 0644 |
|
syslog.ph | File | 403 B | 0644 |
|
time.ph | File | 1.76 KB | 0644 |
|
timex.ph | File | 3.03 KB | 0644 |
|
types.ph | File | 2.51 KB | 0644 |
|
typesizes.ph | File | 3.87 KB | 0644 |
|
uio.ph | File | 581 B | 0644 |
|
waitflags.ph | File | 731 B | 0644 |
|
waitstatus.ph | File | 2.52 KB | 0644 |
|
wordsize.ph | File | 457 B | 0644 |
|