/external/mksh/src/ |
D | shf.c | 40 static int shf_fillbuf(struct shf *); 41 static int shf_emptybuf(struct shf *, int); 48 struct shf * 51 struct shf *shf; in shf_open() local 58 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_open() 59 shf->areap = ATEMP; in shf_open() 60 shf->buf = (unsigned char *)&shf[1]; in shf_open() 61 shf->bsize = bsize; in shf_open() 62 shf->flags = SHF_ALLOCS; in shf_open() 68 afree(shf, shf->areap); in shf_open() [all …]
|
D | tree.c | 30 static void ptree(struct op *, int, struct shf *); 31 static void pioact(struct shf *, struct ioword *); 32 static const char *wdvarput(struct shf *, const char *, int, int); 33 static void vfptreef(struct shf *, int, const char *, va_list); 46 ptree(struct op *t, int indent, struct shf *shf) in ptree() argument 77 fptreef(shf, indent, Tf_S, t->vars[0]); in ptree() 84 fptreef(shf, indent, Tf_S_, *w++); in ptree() 86 shf_puts("#no-vars# ", shf); in ptree() 93 shf_putc('\\', shf); in ptree() 94 shf_puts(cp, shf); in ptree() [all …]
|
D | sh.h | 1199 struct shf *shf; member 1410 #define shf_fileno(shf) ((shf)->fd) argument 1411 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd)) argument 1412 #define shf_getc_i(shf) ((shf)->rnleft > 0 ? \ argument 1413 (shf)->rnleft--, *(shf)->rp++ : \ 1414 shf_getchar(shf)) 1415 #define shf_putc_i(c, shf) ((shf)->wnleft == 0 ? \ argument 1416 shf_putchar((uint8_t)(c), (shf)) : \ 1417 ((shf)->wnleft--, *(shf)->wp++ = (c))) 1418 #define shf_eof(shf) ((shf)->flags & SHF_EOF) argument [all …]
|
D | eval.c | 45 struct shf *shf; member 438 struct shf shf; in expand() local 440 shf_sopen(NULL, 0, SHF_WR|SHF_DYNAMIC, &shf); in expand() 441 print_value_quoted(&shf, str_val(st->var)); in expand() 442 x.str = shf_sclose(&shf); in expand() 883 if (x.u.shf == NULL) { in expand() 893 while ((c = shf_getc(x.u.shf)) == 0 || in expand() 900 c = shf_getc(x.u.shf); in expand() 905 shf_ungetc(c, x.u.shf); in expand() 918 shf_ungetc(c, x.u.shf); in expand() [all …]
|
D | main.c | 531 s->u.shf = shf_open(s->file, O_RDONLY, 0, in main_init() 533 if (s->u.shf == NULL) { in main_init() 545 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0), in main_init() 551 s->u.shf->flags |= SHF_INTERRUPT; in main_init() 727 struct shf *shf; in include() local 732 shf = shf_open(name, O_RDONLY, 0, SHF_MAPHI | SHF_CLEXEC); in include() 733 if (shf == NULL) in include() 745 quitenv(s ? s->u.shf : NULL); in include() 778 s->u.shf = shf; in include() 781 quitenv(s->u.shf); in include() [all …]
|
D | misc.c | 210 co.shf = shl_stdout; in printoptions() 1111 print_value_quoted(struct shf *shf, const char *s) in print_value_quoted() argument 1126 shf_puts(s, shf); in print_value_quoted() 1139 shf_putc('\'', shf); in print_value_quoted() 1142 shf_putc('\\', shf); in print_value_quoted() 1144 shf_putc('\'', shf); in print_value_quoted() 1147 shf_putc(c, shf); in print_value_quoted() 1154 shf_putc('$', shf); in print_value_quoted() 1155 shf_putc('\'', shf); in print_value_quoted() 1161 shf_fprintf(shf, "\\u%04X", wc); in print_value_quoted() [all …]
|
D | histrap.c | 87 struct shf *shf; in c_fc() local 296 if (!(shf = tf->shf)) { in c_fc() 302 shf_fprintf(shf, Tf_sN, *hp); in c_fc() 303 if (shf_close(shf) == -1) { in c_fc() 320 if (!(shf = shf_open(tf->tffn, O_RDONLY, 0, 0))) { in c_fc() 334 while ((n = shf_read(xp, Xnleft(xs, xp), shf)) > 0) { in c_fc() 341 cstrerror(shf_errno(shf))); in c_fc() 343 shf_close(shf); in c_fc() 346 shf_close(shf); in c_fc()
|
D | lex.c | 1380 char *p = shf_getse(xp, Xnleft(s->xs, xp), s->u.shf); in getsc_line() 1382 if (!p && shf_error(s->u.shf) && in getsc_line() 1383 shf_errno(s->u.shf) == EINTR) { in getsc_line() 1384 shf_clearerr(s->u.shf); in getsc_line() 1406 shf_flush(s->u.shf); in getsc_line() 1425 shf_fdclose(s->u.shf); in getsc_line() 1465 struct shf *shf; in set_prompt() local 1471 shf = shf_sopen(NULL, strlen(ps1) * 2, in set_prompt() 1475 shf_putchar(*ps1++, shf); in set_prompt() 1477 shf_fprintf(shf, Tf_lu, s ? in set_prompt() [all …]
|
D | jobs.c | 133 static struct shf *shl_j; 143 static void j_print(Job *, int, struct shf *); 1524 j_print(Job *j, int how, struct shf *shf) in j_print() argument 1541 shf_fprintf(shf, Tf_dN, (int)(j->pgrp ? j->pgrp : in j_print() 1602 shf_fprintf(shf, "[%d] %c ", j->job, jobchar); in j_print() 1604 shf_puts(filler, shf); in j_print() 1608 shf_fprintf(shf, "%5d ", (int)p->pid); in j_print() 1613 shf_fprintf(shf, "%s%s ", in j_print() 1618 shf_fprintf(shf, "%-20s %s%s%s", buf, p->command, in j_print() 1628 shf_fprintf(shf, "%s%5d %-20s %s%s", filler, in j_print() [all …]
|
D | exec.c | 1577 hereinval(struct ioword *iop, int sub, char **resbuf, struct shf *shf) in hereinval() argument 1586 quitenv(shf); in hereinval() 1604 shf_puts(ccp, shf); in hereinval() 1616 struct shf *shf; in herein() local 1632 if (!(shf = h->shf) || (fd = binopen3(h->tffn, O_RDONLY, 0)) < 0) { in herein() 1635 !shf ? Tcreate : Topen, h->tffn, cstrerror(i)); in herein() 1636 if (shf) in herein() 1637 shf_close(shf); in herein() 1642 if (hereinval(iop, i, NULL, shf) == -2) { in herein() 1648 if (shf_close(shf) == -1) { in herein() [all …]
|
D | funcs.c | 243 static void p_time(struct shf *, bool, long, int, int, 529 co.shf = shf_sopen(NULL, 128, SHF_WR | SHF_DYNAMIC, NULL); in c_print() 536 w = co.shf->wp - co.shf->buf; in c_print() 538 memcpy(xp, co.shf->buf, w); in c_print() 540 shf_sclose(co.shf); in c_print() 1156 co.shf = shl_stdout; in c_kill() 2326 p_time(struct shf *shf, bool posix, long tv_sec, int tv_usec, int width, in p_time() argument 2331 shf_fprintf(shf, "%s%*ld.%02d%s", prefix, width, in p_time() 2334 shf_fprintf(shf, "%s%*ldm%02d.%02ds%s", prefix, width, in p_time()
|
/external/llvm/test/MC/Mips/msa/ |
D | test_i8.s | 9 # CHECK: shf.b $w19, $w30, 105 # encoding: [0x78,0x69,0xf4,0xc2] 10 # CHECK: shf.h $w17, $w8, 76 # encoding: [0x79,0x4c,0x44,0x42] 11 # CHECK: shf.w $w14, $w3, 93 # encoding: [0x7a,0x5d,0x1b,0x82] 20 shf.b $w19, $w30, 105 21 shf.h $w17, $w8, 76 22 shf.w $w14, $w3, 93
|
D | invalid-64.s | 40 shf.b $w19, $w30, -1 # CHECK: :[[@LINE]]:23: error: expected 8-bit unsigned immediate 41 shf.h $w17, $w8, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate 42 shf.w $w14, $w3, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate
|
D | invalid.s | 208 shf.b $w19, $w30, -1 # CHECK: :[[@LINE]]:23: error: expected 8-bit unsigned immediate 209 shf.b $w19, $w30, 256 # CHECK: :[[@LINE]]:23: error: expected 8-bit unsigned immediate 210 shf.h $w17, $w8, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate 211 shf.h $w17, $w8, 256 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate 212 shf.w $w14, $w3, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate 213 shf.w $w14, $w3, 256 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate
|
/external/llvm/test/CodeGen/NVPTX/ |
D | rotate.ll | 16 ; SM35: shf.l.wrap.b32 28 ; SM35: shf.l.wrap.b32 29 ; SM35: shf.l.wrap.b32 41 ; SM35: shf.r.wrap.b32 42 ; SM35: shf.r.wrap.b32 53 ; SM35: shf.l.wrap.b32
|
/external/llvm/test/MC/Disassembler/Mips/msa/ |
D | test_i8.txt | 9 0x78 0x69 0xf4 0xc2 # CHECK: shf.b $w19, $w30, 105 10 0x79 0x4c 0x44 0x42 # CHECK: shf.h $w17, $w8, 76 11 0x7a 0x5d 0x1b 0x82 # CHECK: shf.w $w14, $w3, 93
|
/external/llvm/test/CodeGen/Mips/msa/ |
D | i8.ll | 142 %1 = tail call <16 x i8> @llvm.mips.shf.b(<16 x i8> %0, i32 25) 147 declare <16 x i8> @llvm.mips.shf.b(<16 x i8>, i32) nounwind 151 ; CHECK: shf.b 161 %1 = tail call <8 x i16> @llvm.mips.shf.h(<8 x i16> %0, i32 25) 166 declare <8 x i16> @llvm.mips.shf.h(<8 x i16>, i32) nounwind 170 ; CHECK: shf.h 180 %1 = tail call <4 x i32> @llvm.mips.shf.w(<4 x i32> %0, i32 25) 185 declare <4 x i32> @llvm.mips.shf.w(<4 x i32>, i32) nounwind 189 ; CHECK: shf.w
|
D | bitcast.ll | 50 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 177 98 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27 123 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27 148 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27 149 ; BIGENDIAN: shf.w [[R3:\$w[0-9]+]], [[R3]], 177 174 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 27 175 ; BIGENDIAN: shf.w [[R3:\$w[0-9]+]], [[R3]], 177 200 ; BIGENDIAN: shf.b [[R3:\$w[0-9]+]], [[R2]], 177 272 ; BIGENDIAN: shf.h [[R3:\$w[0-9]+]], [[R2]], 177 297 ; BIGENDIAN: shf.h [[R3:\$w[0-9]+]], [[R2]], 177 [all …]
|
D | shuffle.ll | 165 ; CHECK-DAG: shf.w [[R3:\$w[0-9]+]], [[R1]], 27 192 ; CHECK-DAG: shf.w [[R3:\$w[0-9]+]], [[R2]], 36 314 ; CHECK-DAG: shf.b [[R3:\$w[0-9]+]], [[R1]], 45 327 ; CHECK-DAG: shf.h [[R3:\$w[0-9]+]], [[R1]], 27 340 ; CHECK-DAG: shf.w [[R3:\$w[0-9]+]], [[R1]], 27 347 ; shf.d does not exist
|
/external/llvm/lib/Target/Mips/ |
D | MSA.txt | 24 constant since shf.w covers exactly the same cases. shf.w is used 48 It is not possible to emit splati.w since shf.w covers the same cases. 49 shf.w will be emitted instead.
|
/external/mksh/ |
D | Android.mk | 30 src/lex.c src/main.c src/misc.c src/shf.c \
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/ |
D | Dfp.java | 1981 int shf; in dfp2sci() local 1998 shf = p; in dfp2sci() 2027 e = exp * 4 - shf - 1; in dfp2sci()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.td | 1057 // Rotate: Use ptx shf instruction if available. 1062 // r2 = shf.l r1, r1, n 1065 "shf.l.wrap.b32 \t$dst, $src, $src, $amt;", 1071 "shf.l.wrap.b32 \t$dst, $src, $src, $amt;", 1077 // r2 = shf.r r1, r1, n 1080 "shf.r.wrap.b32 \t$dst, $src, $src, $amt;", 1086 "shf.r.wrap.b32 \t$dst, $src, $src, $amt;", 1208 "shf.l.clamp.b32 \t$dst, $lo, $hi, $amt;", 1215 "shf.r.clamp.b32 \t$dst, $lo, $hi, $amt;",
|
/external/valgrind/VEX/priv/ |
D | guest_arm64_toIR.c | 9519 IRTemp shf = newTempV128(); in dis_AdvSIMD_scalar_shift_by_imm() local 9522 assign(shf, mkV128(0x0000)); in dis_AdvSIMD_scalar_shift_by_imm() 9529 assign(shf, binop(op, src, mkU8(sh - nudge))); in dis_AdvSIMD_scalar_shift_by_imm() 9531 assign(res, isAcc ? binop(Iop_Add64x2, getQReg128(dd), mkexpr(shf)) in dis_AdvSIMD_scalar_shift_by_imm() 9532 : mkexpr(shf)); in dis_AdvSIMD_scalar_shift_by_imm() 9556 IRTemp shf = newTempV128(); in dis_AdvSIMD_scalar_shift_by_imm() local 9558 assign(shf, binop(op, src, amt)); in dis_AdvSIMD_scalar_shift_by_imm() 9559 assign(res, isAcc ? binop(Iop_Add64x2, getQReg128(dd), mkexpr(shf)) in dis_AdvSIMD_scalar_shift_by_imm() 9560 : mkexpr(shf)); in dis_AdvSIMD_scalar_shift_by_imm() 10715 IRTemp shf = newTempV128(); in dis_AdvSIMD_shift_by_immediate() local [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | icmp.ll | 1638 %shf = lshr i32 %x, %y 1639 %or = or i32 %shf, %x 1651 %shf = lshr i32 %x, 1 1652 %or = or i32 %shf, %x
|