/osnet-11/usr/src/lib/libc/i386/gen/ |
H A D | strlen.s | 31 / Returns the number of non-NULL bytes in string argument. 81 add $4, %eax / increment src by 4 (bytes in word) 91 lea -4(%eax, %ecx, 1), %eax / undo pre-increment and count bytes
|
H A D | memchr.s | 62 movl 16(%esp), %edi / %edi = number of bytes 63 cmpl $4, %edi / if number of bytes < 4 79 subl $4, %edi / decrement number of bytes by 4 81 cmpl $4, %edi / if number of bytes >= 4 84 cmpl $0, %edi / if number of bytes == 0 88 decl %edi / decrement number of bytes by 1 98 cmpl $0, %edi / if number of bytes == 0 103 decl %edi / decrement number of bytes by 1 106 cmpl $4, %edi / if number of bytes >= 4
|
H A D | strncpy.s | 31 / Copies s2 to s1, truncating or null-padding to always copy n bytes 68 movl 20(%esp), %esi / %esi = number of bytes 73 cmpl $4, %esi / if number of bytes < 4 87 subl $4, %esi / decrement number of bytes by 4 89 cmpl $4, %esi / if number of bytes >= 4 96 / (number of bytes < 4) or (a null byte found in the word) 97 cmpl $0, %esi / if number of bytes == 0 100 decl %esi / decrement number of bytes by 1 110 cmpl $0, %esi / if number of bytes == 0 113 decl %esi / decrement number of bytes b [all...] |
/osnet-11/usr/src/lib/libc/sparcv9/crt/ |
H A D | __align_cpy_2.s | 32 * Copy s2 to s1, always copy n bytes. 45 cmp %o2, 18 ! for small counts copy bytes 52 .s1algn:lduh [%o1], %o3 ! move 2 or 6 bytes to align it 54 sth %o3, [%g5] ! move 2 bytes to align src 64 sth %o4, [%g5] ! have to do 2-bytes, 84 1: sllx %o4, 16, %g1 ! save residual bytes 92 sub %o1, 6, %o1 ! used two bytes of last word read 103 2: sllx %o4, 48, %g1 ! save residual bytes 111 sub %o1, 2, %o1 ! used six bytes of last word read 124 3: sllx %o4, 32, %g1 ! save residual bytes [all...] |
H A D | __align_cpy_4.s | 31 * Copy 4-byte aligned source to 4-byte aligned target in multiples of 4 bytes. 36 * o2 number of bytes to copy (must be a multiple of 4) 50 * The number of bytes to be copied is a multiple of 4. 52 * less than a few hundred bytes. Legal values are 0 to MAX_SIZE_T. 61 brz,pn %o2, .done ! Skip out if no bytes to copy. 72 ld [%o1], %o3 ! Neither is aligned, so do 4 bytes; 81 ! aligned. Get and store 16 bytes at a time using ldx and stx. 90 .loop16a: ! Load and store 16 bytes at a time. 97 bg,pt %xcc, .loop16a ! Have at least 16 bytes left. 101 bg,a,pt %xcc, .chkwd ! Have some remaining bytes [all...] |
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | Sun_fcAdapterCreateWWN.cc | 43 ssize_t bytes; local 46 bytes = read(fd, ptr, resid); 47 ptr += bytes; 48 resid -= bytes;
|
/osnet-11/usr/src/lib/libfru/libfruraw/ |
H A D | crcutils.c | 55 compute_crc8(unsigned char *bytes, int length) argument 74 cm_nxt(p_crc, bytes[i]); 83 compute_crc32(unsigned char *bytes, int length) argument 102 cm_nxt(p_crc, bytes[i]); 117 compute_checksum32(unsigned char *bytes, int length) argument 124 /* Grab bytes in 4-byte chunks */ 127 (void) memcpy(&next4bytes, &(bytes[i]), 4); 139 /* Grab any remaining bytes at the end */ 141 tailbytes[k] = bytes[j]; 145 * Treat any remaining bytes pu [all...] |
/osnet-11/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_streams.c | 41 static void consume(evStream *str, size_t bytes); 223 consume(evStream *str, size_t bytes) { argument 224 while (bytes > 0U) { 225 if (bytes < (size_t)str->iovCur->iov_len) { 226 str->iovCur->iov_len -= bytes; 228 ((u_char *)str->iovCur->iov_base + bytes); 229 str->ioDone += bytes; 230 bytes = 0; 232 bytes -= str->iovCur->iov_len; 258 /* Dribble out some bytes o 262 int bytes; local 285 int bytes; local [all...] |
/osnet-11/usr/src/lib/libc/sparcv9/gen/ |
H A D | strncpy.s | 32 * Copy string s2 to s1, truncating or null-padding to always copy n bytes 55 ! strncpy works similarly to strcpy, except that n bytes of s2 57 ! bytes remain to be copied, strncpy will copy null bytes into 75 sub %o4, 8, %o4 ! bytes until src aligned 99 be,pn %ncc, .storebyte1241 ! store 1, 2, 4, 1 bytes 102 be,pn %ncc, .storebyte1421 ! store 1, 4, 2, 1 bytes 120 ! remaining src bytes and then start padding with null bytes 127 movz %ncc, %g0, %o1 ! if so, start padding with null bytes [all...] |
H A D | memchr.s | 51 ! whether or not the desired character is in the first few bytes 53 ! initializing registers to detect zero bytes 72 bz %ncc, .notfound ! c not found in first n bytes 81 bz %ncc, .notfound ! c not found in first n bytes 82 cmp %o4, 2 ! only two bytes needed to align? 90 bz %ncc, .notfound ! c not found in first n bytes 100 sllx %o1, 16, %g1 ! four bytes <--------+ 118 ! .lastword. "tword" has null bytes where "word" had c. After 145 ! some bytes possibly exceed n. However, "word" might also contain c. 146 ! "tword" (in %g1) has null bytes wher [all...] |
H A D | memcpy.s | 32 * Copy s2 to s1, always copy n bytes. 62 cmp %o2, 17 ! for small counts copy bytes 69 .s1algn:ldub [%o1], %o3 ! move 1 or 3 bytes to align it 81 stb %o4, [%g5] ! have to do bytes, 102 1: sll %o4, 8, %g1 ! save residual bytes 123 2: sll %o4, 24, %g1 ! save residual bytes 131 sub %o1, 1, %o1 ! used three bytes of last word read 146 3: sll %o4, 16, %g1 ! save residual bytes 154 sub %o1, 2, %o1 ! used two bytes of last word read 168 and %o2, 3, %o2 ! number of leftover bytes, i [all...] |
/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | CDAAdvert.java | 74 // Parse in the timestamp. Save bytes for auth block. 112 // Construct bytes for auth. 186 byte[] bytes) 189 bytes[0] = (byte)dis.read(); 190 bytes[1] = (byte)dis.read(); 191 bytes[2] = (byte)dis.read(); 192 bytes[3] = (byte)dis.read(); 194 long a = (long)((char)bytes[0] & 0xFF); 195 long b = (long)((char)bytes[1] & 0xFF); 196 long c = (long)((char)bytes[ 184 getInt32(SrvLocHeader hdr, DataInputStream dis, byte[] bytes) argument [all...] |
H A D | SLPHeaderV2.java | 92 // Sizes of option id and extension fields (in bytes). 328 // Externalize the message by converting it to bytes and writing 634 byte[] bytes = obaos.toByteArray(); 636 baos.write(bytes, 0, bytes.length); 667 // Convert to UTF8 bytes. 669 byte[] bytes = getStringBytes(address, Defaults.UTF8); 671 // Write bytes to stream if there's room. 673 if (bytes.length <= available) { 674 bbaos.write(bytes, [all...] |
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/Bin/ |
H A D | rwbytype.d | 3 * rwbytype.d - read/write bytes by vnode type. 18 * BYTES bytes transferred 79 @bytes[pid, execname, self->type, "R"] = sum(self->size - this->resid); 90 @bytes[pid, execname, self->type, "W"] = sum(self->size - this->resid); 100 printa("%-6d %-16s %6s %4s %@9d\n", @bytes);
|
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/Proc/ |
H A D | rwbytype.d | 3 * rwbytype.d - read/write bytes by vnode type. 18 * BYTES bytes transferred 79 @bytes[pid, execname, self->type, "R"] = sum(self->size - this->resid); 90 @bytes[pid, execname, self->type, "W"] = sum(self->size - this->resid); 100 printa("%-6d %-16s %6s %4s %@9d\n", @bytes);
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/ |
H A D | syslog.pl | 169 @bytes = unpack("C4",$addrs[0]); 172 @bytes = (0,0,0,0); 174 $this = pack($pat, $af_inet, 0, @bytes); 177 @bytes = split(/\./,$host); 182 @bytes = unpack("C4",$addrs[0]); 184 $that = pack($pat,$af_inet,$syslog,@bytes);
|
/osnet-11/usr/src/lib/libc/sparc/gen/ |
H A D | memchr.s | 51 ! whether or not the desired character is in the first few bytes 53 ! initializing registers to detect zero bytes 72 bz .notfound ! c not found in first n bytes 81 bz .notfound ! c not found in first n bytes 82 cmp %o4, 2 ! only two bytes needed to align? 90 bz .notfound ! c not found in first n bytes 100 sll %o1, 16, %g1 ! four bytes <--------+ 118 ! .lastword. "tword" has null bytes where "word" had c. After 145 ! some bytes possibly exceed n. However, "word" might also contain c. 146 ! "tword" (in %g1) has null bytes wher [all...] |
H A D | memcpy.s | 31 * Copy s2 to s1, always copy n bytes. 58 cmp %o2, 17 ! for small counts copy bytes 65 .s1algn:ldub [%o1], %o3 ! move 1 or 3 bytes to align it 77 stb %o4, [%o0] ! have to do bytes, 98 1: sll %o4, 8, %g1 ! save residual bytes 119 2: sll %o4, 24, %g1 ! save residual bytes 127 sub %o1, 1, %o1 ! used three bytes of last word read 142 3: sll %o4, 16, %g1 ! save residual bytes 150 sub %o1, 2, %o1 ! used two bytes of last word read 164 and %o2, 3, %o2 ! number of leftover bytes, i [all...] |
/osnet-11/usr/src/lib/libc/capabilities/sun4u-opl/common/ |
H A D | memcpy.s | 31 * Copy s2 to s1, always copy n bytes. 125 andcc %o0, 7, %o5 ! bytes till DST 8 byte aligned 160 ldx [%o1-16], %o3 ! a block of 32 bytes 167 bgu,pt %ncc, .dbmedl32 ! repeat if at least 32 bytes left 171 ble,pt %ncc, .dbmedl15 ! skip if 15 or fewer bytes left 173 ldx [%o1-8], %o4 ! load and store 16 bytes 185 blt,pt %ncc, .dbremain ! skip if 7 or fewer bytes left 187 ldx [%o1-8], %o4 ! load 8 bytes 189 stx %o4, [%o0-8] ! and store 8 bytes 217 ldd [%o5-8], %d2 ! load 8 bytes [all...] |
/osnet-11/usr/src/lib/libc/amd64/gen/ |
H A D | memchr.s | 60 cmpq $4, %rdx / if number of bytes < 4 76 subq $4, %rdx / decrement number of bytes by 4 78 cmpq $4, %rdx / if number of bytes >= 4 81 cmpq $0, %rdx / if number of bytes == 0 85 decq %rdx / decrement number of bytes by 1 94 cmpq $0, %rdx / if number of bytes == 0 99 decq %rdx / decrement number of bytes by 1 102 cmpq $4, %rdx / if number of bytes >= 4
|
H A D | memccpy.s | 35 decq %rcx / decrement bytes to go 42 decq %rcx / decrement bytes to go 49 decq %rcx / decrement bytes to go 56 decq %rcx / decrement bytes to go
|
/osnet-11/usr/src/lib/efcode/engine/ |
H A D | env.c | 530 int l, cw, fw, bytes; local 552 bytes = pct - fmt; 553 strncpy(tbuf, fmt, bytes); 554 strncpy(tbuf+bytes, "%", 1); 555 strncpy(tbuf+bytes+1, fmt+bytes, 1); 556 bytes += 2; 557 tbuf[bytes] = 0; 561 tbuf+bytes-3); 568 bytes [all...] |
/osnet-11/usr/src/lib/libc/capabilities/sun4v/common/ |
H A D | memset.s | 51 * For small 6 or fewer bytes stores, bytes will be stored. 53 * For less than 32 bytes stores, align the address on 4 byte boundary. 54 * Then store as many 4-byte chunks, followed by trailing bytes. 56 * For sizes greater than 32 bytes, align the address on 8 byte boundary. 58 * store as many 8-bytes chunks to block align the address 61 * Store as many 8-byte chunks, followed by trialing bytes. 77 cmp %o2, 7 ! if small counts, just write bytes 82 or %o1, %o3, %o1 ! now o1 has 2 bytes of c 87 or %o1, %o3, %o1 ! now o1 has 4 bytes o [all...] |
/osnet-11/usr/src/cmd/sendmail/db/os/ |
H A D | os_rw.c | 44 db_iop->bytes, (off_t)db_iop->pgno * db_iop->pagesize); 50 db_iop->bytes, (off_t)db_iop->pgno * db_iop->pagesize); 53 if (*niop == db_iop->bytes) 66 __os_read(db_iop->fd_io, db_iop->buf, db_iop->bytes, niop); 70 __os_write(db_iop->fd_io, db_iop->buf, db_iop->bytes, niop);
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Storable/t/ |
H A D | utf8hash.t | 38 use bytes (); 59 # warn sprintf "%d,%d", bytes::length($u), is_utf8($u); 61 # warn sprintf "%d,%d" ,bytes::length($b), is_utf8($b); 171 my $bytes = my $char = chr 27182; 172 utf8::encode ($bytes); 182 ok (!exists $just_utf8->{$bytes}, "bytes key absent?"); 184 $orig = {$bytes => 1}; 191 cmp_ok (scalar keys %$just_bytes, '==', 1, "1 key in bytes?"); 192 cmp_ok ($just_bytes->{$bytes}, ' [all...] |