Home
last modified time | relevance | path

Searched refs:sptr (Results 1 – 25 of 42) sorted by relevance

12

/plan9/sys/src/cmd/gs/src/
H A Dgsbitops.h44 #define sample_load_declare(sptr, sbit)\ argument
45 const byte *sptr;\
47 #define sample_load_declare_setup(sptr, sbit, ptr, bitno, sbpv)\ argument
48 const byte *sptr = (ptr);\
60 #define sample_load8_(value, sptr, sbit, sbpv)\ argument
63 case 0: value = (*(sptr) >> (8 - (sbit) - (sbpv))) & ((sbpv) | 1); break;\
64 case 1: value = (*(sptr) >> (4 - (sbit))) & 0xf; break;\
65 case 2: value = *(sptr); break;
66 #define sample_load8(value, sptr, sbit, sbpv)\ argument
67 sample_load8_(value, sptr, sbit, sbpv)\
[all …]
H A Dgdevs3ga.c156 const byte *sptr; in s3_copy_mono() local
165 sptr = base + (sourcex >> 3); in s3_copy_mono()
189 for (i = h; i > 0; i--, sptr += skip) in s3_copy_mono()
190 for (j = run; j > 0; j--, sptr++) in s3_copy_mono()
191 outportb(s3_pixel_data, *sptr); in s3_copy_mono()
226 for (i = h; i > 0; i--, sptr += raster) in s3_copy_mono()
227 outportb(s3_pixel_data, *sptr & lmask); in s3_copy_mono()
231 for (i = h; i > 0; i--, sptr += skip) { in s3_copy_mono()
232 outportb(s3_pixel_data, (*sptr++ & lmask) | lmerge); in s3_copy_mono()
233 for (j = run; j > 1; j--, sptr++) in s3_copy_mono()
[all …]
H A Discan.c399 s_declare_inline(s, sptr, endptr); in scan_token()
400 #define scan_begin_inline() s_begin_inline(s, sptr, endptr) in scan_token()
401 #define scan_getc() sgetc_inline(s, sptr, endptr) in scan_token()
402 #define scan_putback() sputback_inline(s, sptr, endptr) in scan_token()
403 #define scan_end_inline() s_end_inline(s, sptr, endptr) in scan_token()
429 if ( sptr >= endptr ) { sptr -= nback; scan_type = styp; goto pause; } in scan_token()
447 sptr = endptr = NULL; /* Quiet compiler */ in scan_token()
712 const byte *base = sptr; in scan_token()
715 while (++sptr < endptr) /* stop 1 char early */ in scan_token()
716 switch (*sptr) { in scan_token()
[all …]
H A Dgdevmr8n.c235 const byte *sptr = srow + sourcex; in mem_gray8_rgb24_strip_copy_rop() local
237 for (; left > 0; ++dptr, ++sptr, --left) { in mem_gray8_rgb24_strip_copy_rop()
238 byte s_pixel = *sptr; in mem_gray8_rgb24_strip_copy_rop()
244 const byte *sptr = srow + sourcex * 3; in mem_gray8_rgb24_strip_copy_rop() local
246 for (; left > 0; dptr += 3, sptr += 3, --left) { in mem_gray8_rgb24_strip_copy_rop()
247 bits32 s_pixel = get24(sptr); in mem_gray8_rgb24_strip_copy_rop()
338 const byte *sptr = srow + sx; in mem_gray8_rgb24_strip_copy_rop() local
341 for (; left > 0; ++dptr, ++sptr, ++tptr, ++sx, ++tx, --left) { in mem_gray8_rgb24_strip_copy_rop()
343 (scolors ? cbit8(srow, sx, scolors) : *sptr); in mem_gray8_rgb24_strip_copy_rop()
351 const byte *sptr = srow + sx * 3; in mem_gray8_rgb24_strip_copy_rop() local
[all …]
H A Dgdevm4.c101 const byte *sptr = line; in mem_mapped4_copy_mono() local
102 register uint sbyte = *sptr++; in mem_mapped4_copy_mono()
115 sbit = 7, sbyte = *sptr++; in mem_mapped4_copy_mono()
147 sbyte = *sptr++; in mem_mapped4_copy_mono()
156 sbyte = (sbyte << 8) | *sptr++; in mem_mapped4_copy_mono()
171 sbyte = (sbyte << 8) | (*sptr << shift); in mem_mapped4_copy_mono()
192 const byte *sptr = line; in mem_mapped4_copy_mono() local
193 register int sbyte = *sptr++ ^ invert; in mem_mapped4_copy_mono()
202 sbit = 0x80, sbyte = *sptr++ ^ invert; in mem_mapped4_copy_mono()
H A Digcstr.c267 igc_reloc_string(gs_string * sptr, gc_state_t * gcst) in igc_reloc_string() argument
276 if (sptr->size == 0) { in igc_reloc_string()
277 sptr->data = 0; in igc_reloc_string()
280 ptr = sptr->data; in igc_reloc_string()
310 sptr->data = cp->sdest - reloc; in igc_reloc_string()
313 igc_reloc_const_string(gs_const_string * sptr, gc_state_t * gcst) in igc_reloc_const_string() argument
316 igc_reloc_string((gs_string *) sptr, gcst); in igc_reloc_const_string()
319 igc_reloc_param_string(gs_param_string * sptr, gc_state_t * gcst) in igc_reloc_param_string() argument
321 if (!sptr->persistent) { in igc_reloc_param_string()
323 igc_reloc_string((gs_string *)sptr, gcst); in igc_reloc_param_string()
H A Dgdevm32.c156 const byte *sptr = line; in mem_true32_copy_mono() local
157 int sbyte = (*sptr++ << first_bit) & 0xff; in mem_true32_copy_mono()
171 sbyte = *sptr++; in mem_true32_copy_mono()
184 sbyte = *sptr; in mem_true32_copy_mono()
201 const byte *sptr = line; in mem_true32_copy_mono() local
202 int sbyte = *sptr++; in mem_true32_copy_mono()
213 bit = 0x80, sbyte = *sptr++; in mem_true32_copy_mono()
H A Distack.c42 ref_stack_t *const sptr = vptr; in CLEAR_MARKS_PROC() local
44 r_clear_attrs(&sptr->current, l_mark); in CLEAR_MARKS_PROC()
47 ENUM_PTRS_WITH(ref_stack_enum_ptrs, ref_stack_t *sptr) return 0;
48 case 0: ENUM_RETURN_REF(&sptr->current);
49 case 1: return ENUM_OBJ(sptr->params);
51 private RELOC_PTRS_WITH(ref_stack_reloc_ptrs, ref_stack_t *sptr) in RELOC_PTRS_WITH() argument
57 ref_packed *bot = (ref_packed *) sptr->current.value.refs; in RELOC_PTRS_WITH()
60 RELOC_REF_VAR(sptr->current); in RELOC_PTRS_WITH()
61 r_clear_attrs(&sptr->current, l_mark); in RELOC_PTRS_WITH()
62 reloc = bot - (ref_packed *) sptr->current.value.refs; in RELOC_PTRS_WITH()
[all …]
H A Dgdevmpla.c252 sample_load_declare_setup(sptr, sbit, source_base, in mem_planar_copy_color()
261 sample_load_next_any(value, sptr, sbit, source_depth); in mem_planar_copy_color()
347 sample_load_declare(sptr[GX_DEVICE_COLOR_MAX_COMPONENTS], in planar_to_chunky()
376 sptr[pi] = *line_ptr + (xbit >> 3); in planar_to_chunky()
389 const byte *p0 = sptr[2]; in planar_to_chunky()
390 const byte *p1 = sptr[1]; in planar_to_chunky()
391 const byte *p2 = sptr[0]; in planar_to_chunky()
402 dptr[0] = *sptr[3]++; in planar_to_chunky()
403 dptr[1] = *sptr[2]++; in planar_to_chunky()
404 dptr[2] = *sptr[1]++; in planar_to_chunky()
[all …]
H A Dgdevsgi.c143 byte *iptr, *sptr, *optr, *ibufend; in sgi_print_page() local
173 sptr = iptr; in sgi_print_page()
178 count = iptr-sptr; in sgi_print_page()
184 *optr++ = *sptr++; in sgi_print_page()
186 sptr = iptr; in sgi_print_page()
190 count = iptr-sptr; in sgi_print_page()
H A Dgdevm2.c94 const byte *sptr = line; in mem_mapped2_copy_mono() local
95 register int sbyte = *sptr++; in mem_mapped2_copy_mono()
109 bit = 0x80, sbyte = *sptr++; in mem_mapped2_copy_mono()
125 bit = 0x80, sbyte = *sptr++; in mem_mapped2_copy_mono()
139 bit = 0x80, sbyte = *sptr++; in mem_mapped2_copy_mono()
H A Dgdevm64.c231 const byte *sptr = line; in mem_true64_copy_mono() local
232 register int sbyte = *sptr++; in mem_true64_copy_mono()
244 bit = 0x80, sbyte = *sptr++; in mem_true64_copy_mono()
265 const byte *sptr = line; in mem_true64_copy_mono() local
266 register int sbyte = *sptr++ & first_mask; in mem_true64_copy_mono()
281 sbyte = *sptr++; in mem_true64_copy_mono()
308 sbyte = *sptr++; in mem_true64_copy_mono()
H A Dgdevsvga.c373 const byte *sptr = srow; in svga_copy_mono() local
389 sptr = srow - (sourcex >> 3) + ((sourcex + xi) >> 3); in svga_copy_mono()
393 bits = *sptr ^ invert; in svga_copy_mono()
415 bits = *++sptr ^ invert; in svga_copy_mono()
435 const byte *sptr; in svga_copy_color() local
440 sptr = base + sourcex; in svga_copy_color()
446 *ptr++ = *sptr++; in svga_copy_color()
448 sptr += skip; in svga_copy_color()
503 const byte *sptr; in svga_copy_alpha() local
524 sptr = base + (sourcex >> (3 - log2_depth)); in svga_copy_alpha()
[all …]
H A Dgsflip.c316 const byte *sptr = planes[pi] + offset + (bi >> 3); in flipNx1to8() local
317 uint value = (*sptr >> (8 - (bi & 7) - bits_per_sample)) & mask; in flipNx1to8()
337 const byte *sptr = planes[pi] + offset + (bi >> 3); in flipNx12() local
339 (bi & 4 ? ((*sptr & 0xf) << 8) | sptr[1] : in flipNx12()
340 (*sptr << 4) | (sptr[1] >> 4)); in flipNx12()
H A Dgdevm16.c140 const byte *sptr = line; in mem_true16_copy_mono() local
141 register int sbyte = *sptr++; in mem_true16_copy_mono()
154 bit = 0x80, sbyte = *sptr++; in mem_true16_copy_mono()
H A Dgdevm48.c273 const byte *sptr = line; in mem_true48_copy_mono() local
274 register int sbyte = *sptr++; in mem_true48_copy_mono()
286 bit = 0x80, sbyte = *sptr++; in mem_true48_copy_mono()
307 const byte *sptr = line; in mem_true48_copy_mono() local
308 register int sbyte = *sptr++ & first_mask; in mem_true48_copy_mono()
323 sbyte = *sptr++; in mem_true48_copy_mono()
350 sbyte = *sptr++; in mem_true48_copy_mono()
H A Dgdevmr1.c252 const byte *sptr = srow + (sx >> 3); in mem_mono_strip_copy_rop() local
256 --sptr, sskew += 8; in mem_mono_strip_copy_rop()
261 ++dptr, ++sptr, ++tptr in mem_mono_strip_copy_rop()
267 byte sbyte = fetch1(sptr, sskew); in mem_mono_strip_copy_rop()
H A Dgdevm40.c304 const byte *sptr = line; in mem_true40_copy_mono() local
305 register int sbyte = *sptr++; in mem_true40_copy_mono()
317 bit = 0x80, sbyte = *sptr++; in mem_true40_copy_mono()
338 const byte *sptr = line; in mem_true40_copy_mono() local
339 register int sbyte = *sptr++ & first_mask; in mem_true40_copy_mono()
354 sbyte = *sptr++; in mem_true40_copy_mono()
381 sbyte = *sptr++; in mem_true40_copy_mono()
/plan9/sys/src/cmd/gs/jpeg/
H A Djmemmgr.c589 jvirt_sarray_ptr sptr; in realize_virt_arrays() local
598 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) { in realize_virt_arrays()
599 if (sptr->mem_buffer == NULL) { /* if not realized yet */ in realize_virt_arrays()
600 space_per_minheight += (long) sptr->maxaccess * in realize_virt_arrays()
601 (long) sptr->samplesperrow * SIZEOF(JSAMPLE); in realize_virt_arrays()
602 maximum_space += (long) sptr->rows_in_array * in realize_virt_arrays()
603 (long) sptr->samplesperrow * SIZEOF(JSAMPLE); in realize_virt_arrays()
639 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) { in realize_virt_arrays()
640 if (sptr->mem_buffer == NULL) { /* if not realized yet */ in realize_virt_arrays()
641 minheights = ((long) sptr->rows_in_array - 1L) / sptr->maxaccess + 1L; in realize_virt_arrays()
[all …]
/plan9/sys/src/cmd/gs/libpng/
H A Dpnggccrd.c1709 png_bytep sptr, dp; in png_do_read_interlace() local
1717 sptr = row + (width - 1) * pixel_bytes; in png_do_read_interlace()
1774 : "1" (sptr), // esi // input regs in png_do_read_interlace()
1818 : "1" (sptr), // esi // input regs in png_do_read_interlace()
1873 : "1" (sptr), // esi // input regs in png_do_read_interlace()
1886 sptr -= width_mmx*3; in png_do_read_interlace()
1893 png_memcpy(v, sptr, 3); in png_do_read_interlace()
1899 sptr -= 3; in png_do_read_interlace()
1948 : "1" (sptr), // esi // input regs in png_do_read_interlace()
1959 sptr -= width_mmx; in png_do_read_interlace()
[all …]
H A Dpngvcrd.c968 png_bytep sptr; in png_combine_row() local
977 sptr = png_ptr->row_buf + 1 + offset_table[png_ptr->pass]* in png_combine_row()
985 png_memcpy(dp, sptr, pixel_bytes); in png_combine_row()
986 sptr += incr1; in png_combine_row()
1203 png_bytep sptr, dp; in png_do_read_interlace() local
1210 sptr = row + (width - 1) * pixel_bytes; in png_do_read_interlace()
1230 mov esi, sptr in png_do_read_interlace()
1265 mov esi, sptr in png_do_read_interlace()
1299 mov esi, sptr in png_do_read_interlace()
1327 sptr -= width_mmx*3; in png_do_read_interlace()
[all …]
/plan9/sys/src/cmd/awk/
H A Drun.c1738 char *sptr, *pb, *q; in sub() local
1758 sptr = t; in sub()
1759 adjbuf(&buf, &bufsz, 1+patbeg-sptr, recsize, 0, "sub"); in sub()
1761 while (sptr < patbeg) in sub()
1762 *pb++ = *sptr++; in sub()
1763 sptr = getsval(y); in sub()
1764 while (*sptr != 0) { in sub()
1766 if (*sptr == '\\') { in sub()
1767 backsub(&pb, &sptr); in sub()
1768 } else if (*sptr == '&') { in sub()
[all …]
/plan9/sys/src/libdraw/
H A Dstringwidth.c13 char *subfontname, **sptr; in _stringnwidth() local
18 sptr = nil; in _stringnwidth()
20 sptr = &s; in _stringnwidth()
32 while((l = cachechars(f, sptr, rptr, cbuf, max, &wid, &subfontname)) <= 0){ in _stringnwidth()
H A Dstring.c65 char **sptr; in _string() local
72 sptr = nil; in _string()
74 sptr = &s; in _string()
85 n = cachechars(f, sptr, rptr, cbuf, max, &wid, &subfontname); in _string()
/plan9/sys/src/cmd/
H A Ddc.c102 Sym *sptr, *sfree; variable
611 sptr = stable[c]; in commnds()
616 sp->next = sptr; in commnds()
636 sptr = stable[c]; in commnds()
637 if(sptr != 0) { in commnds()
638 p = sptr->val; in commnds()
646 sptr = stable[c] = sfree; in commnds()
650 sptr->next = 0; in commnds()
653 sptr->val = p; in commnds()
660 sptr = stable[c]; in commnds()
[all …]

12