| /plan9/sys/src/cmd/gs/src/ |
| H A D | gsfemu.c | 123 int shift = expt - dx(lb); in __adddf3() local 128 if (shift < 0) { /* Swap a and b so that expt(a) >= expt(b). */ in __adddf3() 132 expt += (shift = -shift); in __adddf3() 134 if (shift >= 54) /* also picks up most cases where b == 0 */ in __adddf3() 142 if (shift >= 32) in __adddf3() 143 lsb = msb, msb = 0, shift -= 32; in __adddf3() 144 if (shift) { in __adddf3() 145 --shift; in __adddf3() 146 lsb = (lsb >> shift) + (msb << (32 - shift)); in __adddf3() 147 msb >>= shift; in __adddf3() [all …]
|
| H A D | gsropt.h | 51 #define rop2_operand(shift, d, s)\ argument 52 ((shift) == 2 ? (s) : (d)) 82 #define rop3_invert_(op, mask, shift)\ argument 83 ( (((op) & mask) >> shift) | (((op) & (rop3_1 - mask)) << shift) |\ 91 #define rop3_know_0_(op, mask, shift)\ argument 92 ( (((op) & (rop3_1 - mask)) << shift) | ((op) & ~mask) ) 99 #define rop3_know_1_(op, mask, shift)\ argument 100 ( (((op) & mask) >> shift) | ((op) & ~(rop3_1 - mask)) ) 129 #define rop3_uses_(op, mask, shift)\ argument 130 ( ((((op) << shift) ^ (op)) & mask) != 0 )
|
| H A D | gsovrc.c | 82 int nbytes = 0, shift = 0; in read_color_index() local 84 for (;; shift += 7, data++) { in read_color_index() 90 cindex += (c & 0x7f) << shift; in read_color_index() 566 int shift = depth - 8; in swap_color_index() local 569 color = ((color >> shift) & mask) in swap_color_index() 570 | ((color & mask) << shift) in swap_color_index() 571 | (color & ~((mask << shift) | mask)); in swap_color_index() 573 shift -= 16; in swap_color_index() 575 color = ((color >> shift) & mask) in swap_color_index() 576 | ((color & mask) << shift) in swap_color_index() [all …]
|
| H A D | gdevppla.c | 90 planes[0].shift = depth * (num_comp - 1); in gdev_prn_set_planar() 91 planes[1].shift = planes[0].shift - depth; in gdev_prn_set_planar() 92 planes[2].shift = planes[1].shift - depth; in gdev_prn_set_planar() 93 planes[3].shift = 0; in gdev_prn_set_planar()
|
| H A D | gdevmpla.c | 57 int shift = planes[pi].shift; in gdev_mem_set_planar() local 61 if (shift < 0 || plane_depth > 16 || in gdev_mem_set_planar() 64 mask = (((gx_color_index)1 << plane_depth) - 1) << shift; in gdev_mem_set_planar() 142 (color >> mdev->planes[pi].shift) & in mem_planar_fill_rectangle() 163 int shift = mdev->planes[pi].shift; in mem_planar_copy_mono() local 169 (color0 >> shift) & mask); in mem_planar_copy_mono() 172 (color1 >> shift) & mask); in mem_planar_copy_mono() 208 int shift = mdev->planes[pi].shift; in mem_planar_copy_color() local 262 value = (value >> shift) & mask; in mem_planar_copy_color() 307 int shift = mdev->planes[pi].shift; in mem_planar_strip_tile_rectangle() local [all …]
|
| H A D | gscoord.c | 422 int expt, shift; in gx_matrix_to_fixed_coeff() local 456 shift = scale - _fixed_shift; in gx_matrix_to_fixed_coeff() 457 if (shift > 0) { in gx_matrix_to_fixed_coeff() 458 pfc->shift = shift; in gx_matrix_to_fixed_coeff() 459 pfc->round = (fixed) 1 << (shift - 1); in gx_matrix_to_fixed_coeff() 461 pfc->shift = 0; in gx_matrix_to_fixed_coeff() 463 scale -= shift; in gx_matrix_to_fixed_coeff() 479 pfc->shift); in gx_matrix_to_fixed_coeff() 493 int shift = pfc->shift; in fixed_coeff_mult() local 502 -fixed_mult_quo(value, -coeff, fixed_1 << shift) : in fixed_coeff_mult() [all …]
|
| H A D | gsmisc.c | 605 int shift; in set_float2fixed_() local 612 shift = ((vf >> 23) & 255) - (127 + 23) + frac_bits; in set_float2fixed_() 613 if (shift >= 0) { in set_float2fixed_() 614 if (shift >= sizeof(fixed) * 8 - 24) in set_float2fixed_() 618 *pr = (fixed) (mantissa << shift); in set_float2fixed_() 620 *pr = (shift < -24 ? fixed_0 : in set_float2fixed_() 621 vf < 0 ? -(fixed) (mantissa >> -shift) : /* truncate */ in set_float2fixed_() 622 (fixed) (mantissa >> -shift)); in set_float2fixed_() 630 int shift; in set_double2fixed_() local 638 shift = ((hi >> 20) & 2047) - (1023 + 30) + frac_bits; in set_double2fixed_() [all …]
|
| H A D | spdiff.c | 156 #define ENCODE_UNALIGNED_LOOP(shift, cshift, de)\ in s_PDiff_process() argument 162 t = (s0 << (cshift)) | (ss->prev[ci] >> (shift));\ in s_PDiff_process() 177 int shift = colors & 7; in s_PDiff_process() local 178 int cshift = 8 - shift; in s_PDiff_process() 180 ENCODE_UNALIGNED_LOOP(shift, cshift, *p ^ t); in s_PDiff_process() 207 #define DECODE_UNALIGNED_LOOP(shift, cshift, de)\ in s_PDiff_process() argument 213 t = (s0 << (cshift)) | (ss->prev[ci] >> (shift));\ in s_PDiff_process() 226 int shift = colors & 7; in s_PDiff_process() local 227 int cshift = 8 - shift; in s_PDiff_process() 229 DECODE_UNALIGNED_LOOP(shift, cshift, *p ^ t); in s_PDiff_process() [all …]
|
| /plan9/sys/src/cmd/unix/drawterm/libmp/ |
| H A D | mpleft.c | 7 mpleft(mpint *b, int shift, mpint *res) in mpleft() argument 13 if(shift < 0){ in mpleft() 14 mpright(b, -shift, res); in mpleft() 22 mpbits(res, otop*Dbits + shift); // overkill in mpleft() 23 res->top = DIGITS(otop*Dbits + shift); in mpleft() 24 d = shift/Dbits; in mpleft() 25 l = shift - d*Dbits; in mpleft()
|
| H A D | mpright.c | 7 mpright(mpint *b, int shift, mpint *res) in mpright() argument 13 if(shift < 0){ in mpright() 14 mpleft(b, -shift, res); in mpright() 19 mpbits(res, b->top*Dbits - shift); in mpright() 20 d = shift/Dbits; in mpright() 21 r = shift - d*Dbits; in mpright()
|
| /plan9/sys/src/libmp/port/ |
| H A D | mpleft.c | 7 mpleft(mpint *b, int shift, mpint *res) in mpleft() argument 19 if(shift < 0){ in mpleft() 20 mpright(b, -shift, res); in mpleft() 28 mpbits(res, otop*Dbits + shift); // overkill in mpleft() 29 res->top = DIGITS(otop*Dbits + shift); in mpleft() 30 d = shift/Dbits; in mpleft() 31 l = shift - d*Dbits; in mpleft()
|
| H A D | mpright.c | 7 mpright(mpint *b, int shift, mpint *res) in mpright() argument 19 if(shift < 0){ in mpright() 20 mpleft(b, -shift, res); in mpright() 25 mpbits(res, b->top*Dbits - shift); in mpright() 26 d = shift/Dbits; in mpright() 27 r = shift - d*Dbits; in mpright()
|
| /plan9/sys/src/cmd/scat/ |
| H A D | hinv.c | 15 int shift; in hinv() local 43 shift = 1; in hinv() 70 shift = 0; in hinv() 88 h0 = a[s00 ] << shift; in hinv() 89 hx = a[s10 ] << shift; in hinv() 90 hy = a[s00+1] << shift; in hinv() 91 hc = a[s10+1] << shift; in hinv() 111 h0 = a[s00 ] << shift; in hinv() 112 hx = a[s10 ] << shift; in hinv() 124 h0 = a[s00 ] << shift; in hinv() [all …]
|
| /plan9/sys/src/cmd/vnc/ |
| H A D | kbdv.c | 93 int ctlfd, fd, kr, kn, w, shift, ctl, alt; in readkbd() local 106 shift = alt = ctl = 0; in readkbd() 129 shift = !shift; in readkbd() 130 keyevent(v, Xshift, shift); in readkbd() 144 if(!shift && r == ks && r < sizeof shiftkey && shiftkey[r]){ in readkbd() 145 shift = 1; in readkbd() 170 if(shift){ in readkbd() 172 shift = 0; in readkbd()
|
| H A D | color.c | 15 ulong c, rc, shift; in chan2fmt() local 17 shift = 0; in chan2fmt() 22 fmt->red = (Colorfmt){(1<<NBITS(c))-1, shift}; in chan2fmt() 25 fmt->blue = (Colorfmt){(1<<NBITS(c))-1, shift}; in chan2fmt() 28 fmt->green = (Colorfmt){(1<<NBITS(c))-1, shift}; in chan2fmt() 31 shift += NBITS(c); in chan2fmt()
|
| /plan9/rc/bin/pc/ |
| H A D | defs | 10 shift 11 shift 17 shift 18 shift 22 shift 38 shift
|
| /plan9/sys/src/cmd/gs/libpng/ |
| H A D | pngrtran.c | 1323 &(png_ptr->shift)); in png_do_read_transformations() 1424 png_uint_32 shift = 7 - (int)((row_width + 7) & 0x07); in png_do_unpack() local 1427 *dp = (png_byte)((*sp >> shift) & 0x01); in png_do_unpack() 1428 if (shift == 7) in png_do_unpack() 1430 shift = 0; in png_do_unpack() 1434 shift++; in png_do_unpack() 1445 png_uint_32 shift = (int)((3 - ((row_width + 3) & 0x03)) << 1); in png_do_unpack() local 1448 *dp = (png_byte)((*sp >> shift) & 0x03); in png_do_unpack() 1449 if (shift == 6) in png_do_unpack() 1451 shift = 0; in png_do_unpack() [all …]
|
| H A D | pngwtran.c | 61 &(png_ptr->shift)); in png_do_write_transformations() 132 int shift, v; in png_do_pack() local 138 shift = 6; in png_do_pack() 145 v |= (value << shift); in png_do_pack() 146 if (shift == 0) in png_do_pack() 148 shift = 6; in png_do_pack() 154 shift -= 2; in png_do_pack() 157 if (shift != 6) in png_do_pack() 164 int shift, v; in png_do_pack() local 170 shift = 4; in png_do_pack() [all …]
|
| /plan9/sys/src/cmd/postscript/misc/ |
| H A D | lp.model | 50 shift; shift; shift; shift; shift
|
| /plan9/rc/bin/replica/ |
| H A D | defs | 24 shift 27 shift 30 shift 34 shift
|
| /plan9/sys/src/cmd/unix/drawterm/libsec/ |
| H A D | egdecrypt.c | 12 int shift = ((plen+Dbits-1)/Dbits)*Dbits; in egdecrypt() local 18 mpright(in, shift, gamma); in egdecrypt() 19 mpleft(gamma, shift, delta); in egdecrypt()
|
| H A D | egtest.c | 10 int plen, shift; in main() local 23 shift = ((plen+Dbits-1)/Dbits)*Dbits; in main() 28 mpleft(gamma, shift, in); in main()
|
| /plan9/sys/src/libsec/port/ |
| H A D | egdecrypt.c | 12 int shift = ((plen+Dbits-1)/Dbits)*Dbits; in egdecrypt() local 18 mpright(in, shift, gamma); in egdecrypt() 19 mpleft(gamma, shift, delta); in egdecrypt()
|
| H A D | egtest.c | 10 int plen, shift; in main() local 23 shift = ((plen+Dbits-1)/Dbits)*Dbits; in main() 28 mpleft(gamma, shift, in); in main()
|
| /plan9/sys/src/cmd/diff/ |
| H A D | diffio.c | 63 unsigned shift; in readhash() local 68 shift = 0; in readhash() 76 sum += (long)*p++ << (shift &= (HALFLONG-1)); in readhash() 77 shift += 7; in readhash() 90 shift += 7; in readhash() 93 sum += (long)*p << (shift &= (HALFLONG-1)); in readhash() 94 shift += 7; in readhash() 106 sum += (long)*p++ << (shift &= (HALFLONG-1)); in readhash() 107 shift += 7; in readhash()
|