Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 191) sorted by relevance

12345678

/plan9/sys/src/games/mp3enc/
H A Dportableio.c417 ConvertFromIeeeExtended(char* bytes) in ConvertFromIeeeExtended() argument
425 (long)bytes[0], (long)bytes[1], (long)bytes[2], (long)bytes[3], in ConvertFromIeeeExtended()
426 (long)bytes[4], (long)bytes[5], (long)bytes[6], in ConvertFromIeeeExtended()
427 (long)bytes[7], (long)bytes[8], (long)bytes[9]); in ConvertFromIeeeExtended()
430 expon = ((bytes[0] & 0x7F) << 8) | (bytes[1] & 0xFF); in ConvertFromIeeeExtended()
431 hiMant = ((unsigned long)(bytes[2] & 0xFF) << 24) in ConvertFromIeeeExtended()
432 | ((unsigned long)(bytes[3] & 0xFF) << 16) in ConvertFromIeeeExtended()
433 | ((unsigned long)(bytes[4] & 0xFF) << 8) in ConvertFromIeeeExtended()
434 | ((unsigned long)(bytes[5] & 0xFF)); in ConvertFromIeeeExtended()
435 loMant = ((unsigned long)(bytes[6] & 0xFF) << 24) in ConvertFromIeeeExtended()
[all …]
H A Dvorbis_interface.c61 int bytes; in lame_decode_ogg_initfile() local
77 bytes=fread(buffer,1,4096,fd); in lame_decode_ogg_initfile()
78 ogg_sync_wrote(&oy,bytes); in lame_decode_ogg_initfile()
157 bytes=fread(buffer,1,4096,fd); in lame_decode_ogg_initfile()
158 if(bytes==0 && i<2){ in lame_decode_ogg_initfile()
162 ogg_sync_wrote(&oy,bytes); in lame_decode_ogg_initfile()
291 int bytes; in lame_decode_ogg_fromfile() local
293 bytes=fread(buffer,1,4096,fd); in lame_decode_ogg_fromfile()
294 ogg_sync_wrote(&oy,bytes); in lame_decode_ogg_fromfile()
295 if(bytes==0)eof=1; in lame_decode_ogg_fromfile()
[all …]
/plan9/sys/src/cmd/gs/src/
H A Dgsmemory.c51 return (pbs->bytes ? ENUM_OBJ(pbs->bytes) : ENUM_STRING(pbs)); in enum_bytestring()
56 return (pbs->bytes ? ENUM_OBJ(pbs->bytes) : ENUM_CONST_STRING(pbs)); in enum_const_bytestring()
61 if (pbs->bytes) { in reloc_bytestring()
62 byte *bytes = pbs->bytes; in reloc_bytestring() local
63 long offset = pbs->data - bytes; in reloc_bytestring()
65 pbs->bytes = bytes = RELOC_OBJ(bytes); in reloc_bytestring()
66 pbs->data = bytes + offset; in reloc_bytestring()
73 if (pbs->bytes) { in reloc_const_bytestring()
74 const byte *bytes = pbs->bytes; in reloc_const_bytestring() local
75 long offset = pbs->data - bytes; in reloc_const_bytestring()
[all …]
H A Dzstring.c89 if (size <= r_size(op1) && !memcmp(op1->value.bytes, op->value.bytes, size)) { in zanchorsearch()
95 op1->value.bytes += size; in zanchorsearch()
123 ptr = op1->value.bytes; in zsearch()
126 pat = op->value.bytes; in zsearch()
139 op->value.bytes = ptr; in zsearch()
143 r_set_size(op - 1, ptr - op[-1].value.bytes); in zsearch()
144 op1->value.bytes = ptr + size; in zsearch()
193 result = (r_size(op) == 1 && *op->value.bytes == '*'); in zstringmatch()
H A Dsjpx.c141 int x, int y, int bytes) in copy_row_gray() argument
147 for (i = 1; i <= bytes; i++) { in copy_row_gray()
152 return bytes; in copy_row_gray()
157 int x, int y, int bytes) in copy_row_rgb() argument
164 int count = (bytes/3) * 3; in copy_row_rgb()
181 int x, int y, int bytes) in copy_row_yuv() argument
184 int count = (bytes/3) * 3; in copy_row_yuv()
238 int x, int y, int bytes) in copy_row_default() argument
244 count = (bytes/n) * n; in copy_row_default()
257 long bytes) in s_jpxd_buffer_input() argument
[all …]
H A Dgdevpdfk.c326 set_uint32(byte bytes[4], uint value) in set_uint32()
328 bytes[0] = (byte)(value >> 24); in set_uint32()
329 bytes[1] = (byte)(value >> 16); in set_uint32()
330 bytes[2] = (byte)(value >> 8); in set_uint32()
331 bytes[3] = (byte)value; in set_uint32()
334 set_XYZ(byte bytes[4], floatp value) in set_XYZ()
336 set_uint32(bytes, (uint)(int)(value * 65536)); in set_XYZ()
339 add_table_xyz3(profile_table_t **ppnt, const char *tag, byte bytes[20], in add_table_xyz3()
342 memcpy(bytes, "XYZ \000\000\000\000", 8); in add_table_xyz3()
343 set_XYZ(bytes + 8, pv->u); in add_table_xyz3()
[all …]
H A Dgstypes.h74 byte *bytes; /* see above */ member
78 const byte *bytes; /* see above */ member
82 ((pbs)->data = (dat), (pbs)->size = (siz), (pbs)->bytes = 0)
84 ((pbs)->data = ((pbs)->bytes = (byts)) + (offset), (pbs)->size = (siz))
H A Dzfcmap.c111 memcmp(rfirst.value.bytes, rlast.value.bytes, size) > 0) in acquire_code_ranges()
113 memcpy(ranges->first, rfirst.value.bytes, size); in acquire_code_ranges()
114 memcpy(ranges->last, rlast.value.bytes, size); in acquire_code_ranges()
176 rmisc.value.bytes[0] > MAX_CMAP_CODE_SIZE - r_size(&rprefix) || in acquire_code_map()
177 rmisc.value.bytes[1] > 1 || in acquire_code_map()
178 rmisc.value.bytes[2] > CODE_VALUE_MAX || in acquire_code_map()
179 rmisc.value.bytes[3] == 0) in acquire_code_map()
182 pclr->key_size = rmisc.value.bytes[0]; in acquire_code_map()
184 memcpy(pclr->key_prefix, rprefix.value.bytes, pclr->key_prefix_size); in acquire_code_map()
185 pclr->key_is_range = rmisc.value.bytes[1]; in acquire_code_map()
[all …]
/plan9/sys/src/cmd/cwfs/doc/
H A Demelie.boot27 Mon Feb 12 13:06:48: 17783239 blocks at 512 bytes each
28 Mon Feb 12 13:06:48: 555726 logical blocks at 16384 bytes each
45 Mon Feb 12 13:06:51: 17783239 blocks at 512 bytes each
46 Mon Feb 12 13:06:51: 555726 logical blocks at 16384 bytes each
51 Mon Feb 12 13:06:51: 17783239 blocks at 512 bytes each
52 Mon Feb 12 13:06:51: 555726 logical blocks at 16384 bytes each
57 Mon Feb 12 13:06:51: 17783239 blocks at 512 bytes each
58 Mon Feb 12 13:06:51: 555726 logical blocks at 16384 bytes each
63 Mon Feb 12 13:06:51: 17783239 blocks at 512 bytes each
64 Mon Feb 12 13:06:51: 555726 logical blocks at 16384 bytes each
[all …]
/plan9/sys/src/cmd/postscript/g3p9bit/
H A Dg3p9bit.c36 uchar *bytes; variable
193 bytes = buf; in readfile()
194 if(bytes[0]=='I' && bytes[1]=='I' && bytes[2]=='*'){ /* dumb PC format */ in readfile()
195 bytes += 0xf3; in readfile()
199 }else if(bytes[0] == 0 && strcmp((char*)bytes+1, "PC Research, Inc") == 0){ /* digifax format */ in readfile()
201 if(bytes[45] == 0x40 && bytes[29] == 1) /* high resolution */ in readfile()
207 bytes += 64; in readfile()
212 if(bytes[0]=='\n'){ in readfile()
213 if(strncmp((char*)bytes+1, "FDCS=", 5) == 0){ in readfile()
214 i = crackhdr(bytes+6, hdr); in readfile()
[all …]
/plan9/sys/src/9/teg2/
H A Dcaches.c47 cachesinvse(void *va, int bytes) in cachesinvse() argument
52 l2cache->invse(va, bytes); in cachesinvse()
53 cachedinvse(va, bytes); in cachesinvse()
58 cacheswbse(void *va, int bytes) in cacheswbse() argument
63 cachedwbse(va, bytes); in cacheswbse()
64 l2cache->wbse(va, bytes); in cacheswbse()
69 cacheswbinvse(void *va, int bytes) in cacheswbinvse() argument
74 cachedwbse(va, bytes); in cacheswbinvse()
75 l2cache->wbinvse(va, bytes); in cacheswbinvse()
76 cachedwbinvse(va, bytes); in cacheswbinvse()
H A Dcache-l2-pl310.c289 l2pl310invse(void *va, int bytes) in l2pl310invse() argument
299 end = start + bytes; in l2pl310invse()
309 applyrange(&l2p->clean.pa, (char *)va + bytes, 1); in l2pl310invse()
312 applyrange(&l2p->inv.pa, va, bytes); in l2pl310invse()
317 l2pl310wbse(void *va, int bytes) in l2pl310wbse() argument
320 applyrange(&L2P->clean.pa, va, bytes); in l2pl310wbse()
329 l2pl310wbinvse(void *va, int bytes) in l2pl310wbinvse() argument
337 applyrange(&l2p->clean.pa, va, bytes); /* paranoia */ in l2pl310wbinvse()
343 applyrange(&l2p->cleaninv.pa, va, bytes); in l2pl310wbinvse()
/plan9/sys/src/cmd/tarsplit/
H A Dtarsub.c45 unsigned bytes; in readtar() local
47 bytes = i = readn(in, buffer, size); in readtar()
50 if (bytes % Tblock != 0) in readtar()
52 if (bytes != size) { in readtar()
59 memset(buffer + bytes, '\0', size - bytes); in readtar()
118 ulong bytes; in passtar() local
132 bytes = blks*Tblock; in passtar()
133 readtar(in, bigbuf, bytes); in passtar()
134 off = writetar(outf, bigbuf, bytes); in passtar()
/plan9/sys/src/cmd/disk/
H A Dmkext.c36 uvlong bytes; in main() local
87 bytes = strtoull(fields[5], 0, 10); in main()
90 if(bytes) in main()
91 seekpast(bytes); in main()
98 name, mode, uid, gid, mtime, bytes); in main()
99 if(bytes) in main()
100 seekpast(bytes); in main()
106 extract(name, mode, mtime, uid, gid, bytes); in main()
204 extract(char *name, ulong mode, ulong mtime, char *uid, char *gid, uvlong bytes) in extract() argument
214 print("x %q %llud bytes\n", name, bytes); in extract()
[all …]
/plan9/sys/src/cmd/con/
H A Dxms.c20 errorout(int ctl, int bytes) in errorout() argument
26 fprint(2, "\nxms: gave up after %d bytes\n", bytes); in errorout()
60 int bytes; in main() local
114 for(bytes = 0, seqno = 1; ; bytes += n, seqno++){ in main()
145 errorout(ctl, bytes); in main()
146 if (progress && bytes % 10240 == 0) in main()
147 fprint(2, "%dK\n", bytes / 1024); in main()
153 errorout(ctl, bytes); in main()
155 fprint(2, "xms: %d bytes transmitted\n", bytes); in main()
/plan9/sys/src/cmd/aux/
H A Dastarld.c19 uchar bytes[256+4]; member
82 if(write(mfd, c.bytes+Doff, c.dlen) != c.dlen) in loadhex()
88 if(memcmp(buf, c.bytes+Doff, c.dlen) != 0) in loadhex()
97 seg = ((c.bytes[Doff]<<8) | c.bytes[Doff+1]) <<4; in loadhex()
240 up = cpl->bytes; in rdcpline()
256 cpl->dlen = cpl->bytes[0]; in rdcpline()
257 if(cpl->dlen + 5 != up - cpl->bytes){ in rdcpline()
258 fprint(2, "%d %ld\n", cpl->dlen + 5, up - cpl->bytes); in rdcpline()
262 cpl->addr = (cpl->bytes[1]<<8) | cpl->bytes[2]; in rdcpline()
263 cpl->type = cpl->bytes[3]; in rdcpline()
/plan9/sys/src/9/port/
H A Ducallocb.c20 ulong bytes; member
83 if(0 && ucialloc.bytes > conf.ialloc){ in uciallocb()
90 ucialloc.bytes, conf.ialloc); in uciallocb()
102 ucialloc.bytes, conf.ialloc); in uciallocb()
110 ucialloc.bytes += b->lim - b->base; in uciallocb()
140 ucialloc.bytes -= b->lim - b->base; in ucfreeb()
H A Dallocb.c21 ulong bytes; member
109 if(ialloc.bytes > conf.ialloc){ in iallocb()
116 ialloc.bytes, conf.ialloc); in iallocb()
128 ialloc.bytes, conf.ialloc); in iallocb()
136 ialloc.bytes += b->lim - b->base; in iallocb()
171 ialloc.bytes -= b->lim - b->base; in freeb()
217 print("ialloc %lud/%lud\n", ialloc.bytes, conf.ialloc); in iallocsummary()
/plan9/sys/src/cmd/
H A Dtar.c34 #define BYTES2TBLKS(bytes) HOWMANY(bytes, Tblock) argument
314 unsigned bytes = Tblock * nblock; in refill() local
325 n = eread(arname, ar, bufs, bytes); in refill()
336 bytes = n; in refill()
338 } else if (justhdr && seekable && nexthdr - blkoff >= bytes) { in refill()
340 if (seek(ar, bytes, 1) < 0) in refill()
342 n = bytes; in refill()
344 n = ereadn(arname, ar, bufs, bytes); in refill()
351 if (n != bytes) { in refill()
353 memset(bufs + n, 0, bytes - n); in refill()
[all …]
/plan9/sys/src/cmd/upas/filterkit/
H A Ddeliver.c17 int bytes, fd, i; in main() local
59 bytes = appendfiletombox(0, fd); in main()
60 if(bytes < 0) in main()
68 a->val, now, argv[0], bytes); in main()
/plan9/sys/src/cmd/unix/drawterm/kern/
H A Dallocb.c16 ulong bytes; member
78 if(ialloc.bytes > conf.ialloc){ in iallocb()
81 ialloc.bytes, conf.ialloc); in iallocb()
88 ialloc.bytes, conf.ialloc); in iallocb()
95 ialloc.bytes += b->lim - b->base; in iallocb()
119 ialloc.bytes -= b->lim - b->base; in freeb()
164 print("ialloc %lud/%lud\n", ialloc.bytes, conf.ialloc); in iallocsummary()
/plan9/sys/src/cmd/postscript/postdmd/
H A DREADME9 bytes patterns count
11 where bytes and count are decimal integers and patterns is a series
12 of hex digits. Bytes is the number of bytes represented by the hex
20 all represent 10 consecutive bytes of ones. Scanlines are terminated
/plan9/sys/lib/dist/cmd/bzfs/
H A Dmkext.c101 ulong mode, bytes, mtime; in main() local
191 bytes = strtoul(fields[5], 0, 10); in main()
197 extract(name, mode, mtime, uid, gid, bytes); in main()
238 extract(char *name, ulong mode, ulong mtime, char *uid, char *gid, ulong bytes) in extract() argument
242 fd = ffcreate(name, mode, uid, gid, mtime, bytes); in extract()
244 for(tot = 0; tot < bytes; tot += n){ in extract()
246 if(tot + n > bytes) in extract()
247 n = bytes - tot; in extract()
/plan9/sys/src/cmd/gs/jpeg/
H A Djmemmac.c158 long bytes = byte_count; in read_backing_store() local
164 retVal = FSRead ( info->temp_file, &bytes, in read_backing_store()
166 if ( retVal != noErr || bytes != byte_count ) in read_backing_store()
176 long bytes = byte_count; in write_backing_store() local
182 retVal = FSWrite ( info->temp_file, &bytes, in write_backing_store()
184 if ( retVal != noErr || bytes != byte_count ) in write_backing_store()
/plan9/sys/src/cmd/upas/common/
H A Dappendfiletombox.c17 ulong bytes; member
49 b->bytes += n; in fill()
55 b->bytes++; in fill()
133 n += b->bytes; in appendfiletombox()
158 n = b->bytes; in appendfiletofile()

12345678