| /plan9/sys/src/libmp/ |
| H A D | test.c | 68 mpint *b1, *b2; in testshift() local 72 b2 = mpnew(0); in testshift() 74 mpleft(b1, i, b2); in testshift() 75 print("%2.2d %B\n", i, b2); in testshift() 78 mpright(b2, i, b1); in testshift() 82 mpfree(b2); in testshift() 88 mpint *b1, *b2; in testaddsub() local 92 b2 = mpnew(0); in testaddsub() 94 mpadd(b1, b2, b2); in testaddsub() 95 print("%2.2d %B\n", i, b2); in testaddsub() [all …]
|
| /plan9/sys/src/cmd/unix/drawterm/libmp/ |
| H A D | mpadd.c | 7 mpmagadd(mpint *b1, mpint *b2, mpint *sum) in mpmagadd() argument 13 if(b2->top > b1->top){ in mpmagadd() 15 b1 = b2; in mpmagadd() 16 b2 = t; in mpmagadd() 19 m = b2->top; in mpmagadd() 31 mpvecadd(b1->p, n, b2->p, m, sum->p); in mpmagadd() 39 mpadd(mpint *b1, mpint *b2, mpint *sum) in mpadd() argument 43 if(b1->sign != b2->sign){ in mpadd() 45 mpmagsub(b2, b1, sum); in mpadd() 47 mpmagsub(b1, b2, sum); in mpadd() [all …]
|
| H A D | mpcmp.c | 7 mpmagcmp(mpint *b1, mpint *b2) in mpmagcmp() argument 11 i = b1->top - b2->top; in mpmagcmp() 15 return mpveccmp(b1->p, b1->top, b2->p, b2->top); in mpmagcmp() 20 mpcmp(mpint *b1, mpint *b2) in mpcmp() argument 22 if(b1->sign != b2->sign) in mpcmp() 23 return b1->sign - b2->sign; in mpcmp() 25 return mpmagcmp(b2, b1); in mpcmp() 27 return mpmagcmp(b1, b2); in mpcmp()
|
| H A D | mpsub.c | 7 mpmagsub(mpint *b1, mpint *b2, mpint *diff) in mpmagsub() argument 13 if(mpmagcmp(b1, b2) < 0){ in mpmagsub() 16 b1 = b2; in mpmagsub() 17 b2 = t; in mpmagsub() 21 m = b2->top; in mpmagsub() 29 mpvecsub(b1->p, n, b2->p, m, diff->p); in mpmagsub() 37 mpsub(mpint *b1, mpint *b2, mpint *diff) in mpsub() argument 41 if(b1->sign != b2->sign){ in mpsub() 43 mpmagadd(b1, b2, diff); in mpsub() 49 mpmagsub(b1, b2, diff); in mpsub()
|
| H A D | mpmul.c | 135 mpmul(mpint *b1, mpint *b2, mpint *prod) in mpmul() argument 140 if(prod == b1 || prod == b2){ in mpmul() 146 mpbits(prod, (b1->top+b2->top+1)*Dbits); in mpmul() 147 mpvecmul(b1->p, b1->top, b2->p, b2->top, prod->p); in mpmul() 148 prod->top = b1->top+b2->top+1; in mpmul() 149 prod->sign = b1->sign*b2->sign; in mpmul()
|
| /plan9/sys/src/libmp/port/ |
| H A D | mpadd.c | 7 mpmagadd(mpint *b1, mpint *b2, mpint *sum) in mpmagadd() argument 13 if(b2->top > b1->top){ in mpmagadd() 15 b1 = b2; in mpmagadd() 16 b2 = t; in mpmagadd() 19 m = b2->top; in mpmagadd() 31 mpvecadd(b1->p, n, b2->p, m, sum->p); in mpmagadd() 39 mpadd(mpint *b1, mpint *b2, mpint *sum) in mpadd() argument 43 if(b1->sign != b2->sign){ in mpadd() 45 mpmagsub(b2, b1, sum); in mpadd() 47 mpmagsub(b1, b2, sum); in mpadd() [all …]
|
| H A D | mpcmp.c | 7 mpmagcmp(mpint *b1, mpint *b2) in mpmagcmp() argument 11 i = b1->top - b2->top; in mpmagcmp() 15 return mpveccmp(b1->p, b1->top, b2->p, b2->top); in mpmagcmp() 20 mpcmp(mpint *b1, mpint *b2) in mpcmp() argument 22 if(b1->sign != b2->sign) in mpcmp() 23 return b1->sign - b2->sign; in mpcmp() 25 return mpmagcmp(b2, b1); in mpcmp() 27 return mpmagcmp(b1, b2); in mpcmp()
|
| H A D | mpsub.c | 7 mpmagsub(mpint *b1, mpint *b2, mpint *diff) in mpmagsub() argument 13 if(mpmagcmp(b1, b2) < 0){ in mpmagsub() 16 b1 = b2; in mpmagsub() 17 b2 = t; in mpmagsub() 21 m = b2->top; in mpmagsub() 29 mpvecsub(b1->p, n, b2->p, m, diff->p); in mpmagsub() 37 mpsub(mpint *b1, mpint *b2, mpint *diff) in mpsub() argument 41 if(b1->sign != b2->sign){ in mpsub() 43 mpmagadd(b1, b2, diff); in mpsub() 49 mpmagsub(b1, b2, diff); in mpsub()
|
| H A D | mpmul.c | 135 mpmul(mpint *b1, mpint *b2, mpint *prod) in mpmul() argument 140 if(prod == b1 || prod == b2){ in mpmul() 146 mpbits(prod, (b1->top+b2->top+1)*Dbits); in mpmul() 147 mpvecmul(b1->p, b1->top, b2->p, b2->top, prod->p); in mpmul() 148 prod->top = b1->top+b2->top+1; in mpmul() 149 prod->sign = b1->sign*b2->sign; in mpmul()
|
| /plan9/sys/src/cmd/ |
| H A D | uniq.c | 16 char *b1, *b2; variable 23 int equal(char *b1, char *b2); 34 b2 = malloc(bsize); in main() 66 if(gline(b2)) { in main() 70 if(!equal(b1, b2)) { in main() 76 pline(b2); in main() 79 } while(equal(b2, b1)); in main() 80 pline(b2); in main() 128 equal(char *b1, char *b2) in equal() argument 134 b2 = skip(b2); in equal() [all …]
|
| H A D | idiff.c | 30 Biobuf *b1, *b2, bdiff, bout, bstdout; in main() local 60 if((b2 = Bopen(argv[1], OREAD)) == nil) in main() 71 idiff(b1, argv[0], b2, argv[1], &bdiff, diffout, &bout, idiffout); in main() 255 idiff(Biobuf *b1, char *name1, Biobuf *b2, char *name2, Biobuf *bdiff, char *namediff, Biobuf *bout… in idiff() argument 301 skiplines(b2, name2, from2-nf2); in idiff() 302 copylines(b2, name2, bout, nameout, to2-from2); in idiff() 306 skiplines(b2, name2, to2-nf2); in idiff() 311 skiplines(b2, name2, to2-nf2); in idiff()
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | memory_.h | 34 # define memcmp_inline(b1,b2,len) memcmp(b1,b2,len) argument 36 # define memcmp_inline(b1,b2,len) __memcmp__(b1,b2,len) argument 41 # define memcmp_inline(b1,b2,len) memcmp(b1,b2,len) argument 61 # define memcmp(b1,b2,len) bcmp(b1,b2,len) argument
|
| H A D | gsflip.c | 100 byte_var b1 = *in1, b2 = *in2, b3 = *in3; in flip3x4() local 102 out[0] = (b1 & 0xf0) | (b2 >> 4); in flip3x4() 104 out[2] = (byte) (b2 << 4) | (b3 & 0xf); in flip3x4() 142 byte_var a1 = pa[1], b0 = pb[0], b1 = pb[1], b2 = pb[2], c1 = pc[1]; in flip3x12() local 150 out[6] = (byte) ((b1 << 4) | (b2 >> 4)); in flip3x12() 151 out[7] = (byte) ((b2 << 4) | (c1 & 0xf)); in flip3x12() 169 byte_var b1 = *in1, b2 = *in2, b3 = *in3, b4 = *in4; in flip4x1() local 173 TRANSPOSE(b1, b2, 0x55, 1); in flip4x1() 177 TRANSPOSE(b2, b4, 0x33, 2); in flip4x1() 179 out[0] = (b1 & 0xf0) | (b2 >> 4); in flip4x1() [all …]
|
| /plan9/sys/src/cmd/eqn/ |
| H A D | shift.c | 21 double shval, d1, h1, b1, h2, b2; in bshiftb() local 28 b2 = ebase[p2]; in bshiftb() 34 ebase[yyval] = shval + b2; in bshiftb() 35 eht[yyval] = max(h1-b1+shval+b2, h2); in bshiftb() 46 shval = -(Supshift * (h1-b1)) - b2; in bshiftb() 48 shval = -(h1-b1) + h2-b2 - d1; in bshiftb() 72 double h1, h2, h3, b1, b2, b3, subsh, d2, supsh; in shift2() local 81 h2 = eht[p2]; b2 = ebase[p2]; in shift2() 84 if (b1 > b2 + subsh) /* move little sub down */ in shift2() 86 eht[yyval] = max(subsh+b2-b1+h1, h2); in shift2() [all …]
|
| /plan9/sys/include/ |
| H A D | mp.h | 64 void mpadd(mpint *b1, mpint *b2, mpint *sum); /* sum = b1+b2 */ 65 void mpsub(mpint *b1, mpint *b2, mpint *diff); /* diff = b1-b2 */ 68 void mpmul(mpint *b1, mpint *b2, mpint *prod); /* prod = b1*b2 */ 76 int mpcmp(mpint *b1, mpint *b2); 119 int mpmagcmp(mpint *b1, mpint *b2); 120 void mpmagadd(mpint *b1, mpint *b2, mpint *sum); /* sum = b1+b2 */ 121 void mpmagsub(mpint *b1, mpint *b2, mpint *sum); /* sum = b1+b2 */
|
| /plan9/sys/src/cmd/unix/drawterm/include/ |
| H A D | mp.h | 59 void mpadd(mpint *b1, mpint *b2, mpint *sum); // sum = b1+b2 60 void mpsub(mpint *b1, mpint *b2, mpint *diff); // diff = b1-b2 63 void mpmul(mpint *b1, mpint *b2, mpint *prod); // prod = b1*b2 71 int mpcmp(mpint *b1, mpint *b2); 114 int mpmagcmp(mpint *b1, mpint *b2); 115 void mpmagadd(mpint *b1, mpint *b2, mpint *sum); // sum = b1+b2 116 void mpmagsub(mpint *b1, mpint *b2, mpint *sum); // sum = b1+b2
|
| /plan9/sys/include/ape/ |
| H A D | mp.h | 73 void mpadd(mpint *b1, mpint *b2, mpint *sum); /* sum = b1+b2 */ 74 void mpsub(mpint *b1, mpint *b2, mpint *diff); /* diff = b1-b2 */ 77 void mpmul(mpint *b1, mpint *b2, mpint *prod); /* prod = b1*b2 */ 85 int mpcmp(mpint *b1, mpint *b2); 128 int mpmagcmp(mpint *b1, mpint *b2); 129 void mpmagadd(mpint *b1, mpint *b2, mpint *sum); /* sum = b1+b2 */ 130 void mpmagsub(mpint *b1, mpint *b2, mpint *sum); /* sum = b1+b2 */
|
| /plan9/sys/src/cmd/disk/9660/ |
| H A D | jchar.c | 70 Rune s1[256], s2[256], *b1, *b2, *e1, *e2; /*BUG*/ in jolietcmp() local 77 b2 = strtorune(s2, b->confname); in jolietcmp() 83 if((e2 = runechr(b2, (Rune)'.')) != nil) in jolietcmp() 88 if((i = runecmp(b1, b2)) != 0) in jolietcmp()
|
| H A D | ichar.c | 106 char s1[32], s2[32], *b1, *b2, *e1, *e2; in isocmp() local 115 b2 = s2; in isocmp() 120 if((e2 = strchr(b2, '.')) != nil) in isocmp() 125 if((i = strcmp(b1, b2)) != 0) in isocmp()
|
| /plan9/sys/src/ape/lib/ap/stdio/ |
| H A D | _dtoa.c | 76 int bbits, b2, b5, be, dig, i, ieps, ilim, ilim0, ilim1, in _dtoa() local 208 b2 = 0; in _dtoa() 212 b2 = -j; in _dtoa() 221 b2 -= k; in _dtoa() 408 m2 = b2; in _dtoa() 437 b2 += i; in _dtoa() 443 b2 -= i; in _dtoa() 474 b2 += Log2P; in _dtoa() 498 b2 += i; in _dtoa() 504 b2 += i; in _dtoa() [all …]
|
| /plan9/sys/src/cmd/venti/srv/ |
| H A D | checkindex.c | 167 checkbloom(Bloom *b1, Bloom *b2, int fix) in checkbloom() argument 172 if(b1==nil && b2==nil) in checkbloom() 174 if(b1==nil || b2==nil){ in checkbloom() 179 wbbloomhead(b2); in checkbloom() 180 if(memcmp(b1->data, b2->data, BloomHeadSize) != 0){ in checkbloom() 185 a2 = (u32int*)b2->data; in checkbloom() 206 memmove(b1->data, b2->data, b1->size); in checkbloom()
|
| /plan9/sys/src/libmemdraw/ |
| H A D | ellipse.c | 45 vlong b2; /* b^2 */ member 64 s->b2 = (vlong)(b*b); in newstate() 67 s->c1 = -((s->a2>>2) + (vlong)(a&1) + s->b2); in newstate() 68 s->c2 = -((s->b2>>2) + (vlong)(b&1)); in newstate() 72 s->d2xe = s->b2<<1; in newstate() 89 s->b2x += s->b2; in step() 99 s->b2x += s->b2; in step()
|
| /plan9/sys/src/cmd/unix/drawterm/libmemdraw/ |
| H A D | ellipse.c | 45 vlong b2; /* b^2 */ member 64 s->b2 = (vlong)(b*b); in newstate() 67 s->c1 = -((s->a2>>2) + (vlong)(a&1) + s->b2); in newstate() 68 s->c2 = -((s->b2>>2) + (vlong)(b&1)); in newstate() 72 s->d2xe = s->b2<<1; in newstate() 89 s->b2x += s->b2; in step() 99 s->b2x += s->b2; in step()
|
| /plan9/sys/src/cmd/db/ |
| H A D | main.c | 31 char b2[100]; in main() local 93 sprint(b2, "/proc/%s/mem", argv[0]); in main() 94 corfil = b2; in main()
|
| /plan9/sys/lib/troff/font/devutf/ |
| H A D | LucidaSans | 126 ² 42 2 178 00b2 385 Ʋ 71 0 434 01b2 539 ʲ 25 0 690 02b2 711 β 60 3 946 03b2 886 Ҳ 66 0 1202 04b2 915 ֲ 0 0 1458 05b2 1174 ↲ 69 0 8626 21b2 1445 ⊲ 80 0 8882 22b2 1716 ▲ 80 0 9650 25b2
|