Current Path : /usr/local/lib/perl5/site_perl/5.8.9/mach/sys/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/perl5/site_perl/5.8.9/mach/sys/buf_ring.ph |
require '_h2ph_pre.ph'; no warnings 'redefine'; unless(defined(&_SYS_BUF_RING_H_)) { eval 'sub _SYS_BUF_RING_H_ () {1;}' unless defined(&_SYS_BUF_RING_H_); require 'machine/cpu.ph'; if(defined( &INVARIANTS) && !defined( &DEBUG_BUFRING)) { eval 'sub DEBUG_BUFRING () {1;}' unless defined(&DEBUG_BUFRING); } if(defined(&DEBUG_BUFRING)) { require 'sys/lock.ph'; require 'sys/mutex.ph'; } if(defined(&DEBUG_BUFRING)) { } if(defined(&DEBUG_BUFRING)) { } if(defined(&DEBUG_BUFRING)) { } eval 'sub buf_ring_enqueue { my($br,$buf) = @_; eval q({ ( &buf_ring_enqueue_bytes($br, $buf, 0)); }); }' unless defined(&buf_ring_enqueue); if(defined(&DEBUG_BUFRING)) { } if(defined(&PREFETCH_DEFINED)) { } if(defined(&DEBUG_BUFRING)) { } if(defined(&DEBUG_BUFRING)) { } eval 'sub buf_ring_full { my($br) = @_; eval q({ ((( ($br->{br_prod_head}) + 1) & ($br->{br_prod_mask})) == ($br->{br_cons_tail})); }); }' unless defined(&buf_ring_full); eval 'sub buf_ring_empty { my($br) = @_; eval q({ ( ($br->{br_cons_head}) == ($br->{br_prod_tail})); }); }' unless defined(&buf_ring_empty); eval 'sub buf_ring_count { my($br) = @_; eval q({ (( ($br->{br_prod_size}) + ($br->{br_prod_tail}) - ($br->{br_cons_tail})) & ($br->{br_prod_mask})); }); }' unless defined(&buf_ring_count); } 1;