| /netbsd-src/bin/ksh/ |
| H A D | shf.c | 28 static int shf_fillbuf ARGS((struct shf *shf)); 29 static int shf_emptybuf ARGS((struct shf *shf, int flags)); 35 struct shf * 42 struct shf *shf; local 47 shf = (struct shf *) alloc(sizeof(struct shf) + bsize, ATEMP); 48 shf->areap = ATEMP; 49 shf->buf = (unsigned char *) &shf[1]; 50 shf->bsize = bsize; 51 shf->flags = SHF_ALLOCS; 56 afree(shf, shf->areap); [all …]
|
| H A D | shf.h | 13 #define shf_fileno(shf) ((shf)->fd) argument 14 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd)) argument 15 #define shf_getc(shf) ((shf)->rnleft > 0 ? (shf)->rnleft--, *(shf)->rp++ : \ argument 16 shf_getchar(shf)) 17 #define shf_putc(c, shf) ((shf)->wnleft == 0 ? shf_putchar((c), (shf)) \ argument 18 : ((shf)->wnleft--, *(shf)->wp++ = (c))) 19 #define shf_eof(shf) ((shf)->flags & SHF_EOF) argument 20 #define shf_error(shf) ((shf)->flags & SHF_ERROR) argument 21 #define shf_errno(shf) ((shf)->errno_) argument 22 #define shf_clearerr(shf) ((shf)->flags &= ~(SHF_EOF | SHF_ERROR)) argument [all …]
|
| H A D | tree.c | 17 #define tputc(c, shf) shf_putchar(c, shf); argument 18 static void ptree ARGS((struct op *t, int indent, struct shf *f)); 19 static void pioact ARGS((struct shf *f, int indent, struct ioword *iop)); 20 static void tputC ARGS((int c, struct shf *shf)); 21 static void tputS ARGS((char *wp, struct shf *shf)); 22 static void vfptreef ARGS((struct shf *shf, int indent, const char *fmt, va_list va)); 31 ptree(t, indent, shf) in ptree() argument 34 struct shf *shf; 47 fptreef(shf, indent, "%S ", *w++); 49 fptreef(shf, indent, "#no-vars# "); [all …]
|
| H A D | main.c | 298 s->u.shf = shf_open(s->file, O_RDONLY, 0, SHF_MAPHI|SHF_CLEXEC); in main() 299 if (s->u.shf == NULL) { in main() 308 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0), in main() 309 (struct shf *) 0); in main() 314 s->u.shf->flags |= SHF_INTERRUPT; in main() 425 struct shf *shf; local 430 shf = shf_open(name, O_RDONLY, 0, SHF_MAPHI|SHF_CLEXEC); 431 if (shf == NULL) 445 shf_close(s->u.shf); 477 s->u.shf = shf; [all …]
|
| H A D | io.c | 150 static struct shf *kshdebug_shf; 217 struct shf shf_iob[3]; 463 tp->shf = (struct shf *) 0; 469 tp->shf = shf_fdopen(fd, SHF_WR, (struct shf *) 0); 480 tp->shf = shf_fdopen(fd, SHF_WR, (struct shf *) 0);
|
| H A D | c_sh.c | 254 struct shf *shf; local 297 shf = shf_reopen(fd, SHF_RD | SHF_INTERRUPT | can_seek(fd), shl_spare); 333 c = shf_getc(shf); 337 if (c == EOF && shf_error(shf) 338 && shf_errno(shf) == EINTR) 348 shf_clearerr(shf); 397 shf_flush(shf); 404 shf_flush(shf); 409 shf_flush(shf);
|
| H A D | lex.c | 1031 char *p = shf_getse(xp, Xnleft(s->xs, xp), s->u.shf); 1033 if (!p && shf_error(s->u.shf) 1034 && shf_errno(s->u.shf) == EINTR) 1036 shf_clearerr(s->u.shf); 1055 shf_flush(s->u.shf); 1073 shf_fdclose(s->u.shf); 1114 struct shf *shf; local 1119 shf = shf_sopen((char *) 0, strlen(ps1) * 2, 1120 SHF_WR | SHF_DYNAMIC, (struct shf *) 0); 1123 shf_putchar(*ps1++, shf); [all …]
|
| H A D | jobs.c | 189 static struct shf *shl_j; 216 static void j_print ARGS((Job *j, int how, struct shf *shf)); 248 shl_j = shf_fdopen(2, SHF_WR, (struct shf *) 0); 1431 j_print(j, how, shf) in j_print() argument 1434 struct shf *shf; 1450 shf_fprintf(shf, "%d\n", j->pgrp ? j->pgrp 1498 shf_fprintf(shf, "[%d] %c ", j->job, jobchar); 1500 shf_fprintf(shf, "%s", filler); 1504 shf_fprintf(shf, "%5d ", p->pid); 1509 shf_fprintf(shf, "%s%s ", [all …]
|
| H A D | lex.h | 18 struct shf *shf; /* shell file */ member
|
| H A D | exec.c | 1262 struct shf *volatile shf; local 1276 if (!(shf = h->shf) || (fd = open(h->name, O_RDONLY, 0)) < 0) { 1278 !shf ? "create" : "open", 1280 if (shf) 1281 shf_close(shf); 1291 shf_close(shf); /* after quitenv */ 1303 shf_puts(evalstr(yylval.cp, 0), shf); 1305 shf_puts(content, shf); 1309 if (shf_close(shf) == EOF) {
|
| H A D | proto.h | 199 void print_columns ARGS((struct shf *, int, 246 int fptreef ARGS((struct shf *, int, const char *, ...));
|
| H A D | sh.h | 340 struct shf *shf; member
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/ |
| H A 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.
|
| H A D | MipsScheduleP5600.td | 337 // aver?_[us].[bhwd], shf.[bhw], fill[bhwd], splat?.[bhwd]
|
| /netbsd-src/external/gpl3/binutils/dist/include/elf/ |
| H A D | nfp.h | 104 #define SHF_NFP_SCS(shf) (((shf) >> 32) & 0xFF) argument
|
| /netbsd-src/external/gpl3/binutils.old/dist/include/elf/ |
| H A D | nfp.h | 104 #define SHF_NFP_SCS(shf) (((shf) >> 32) & 0xFF) argument
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/mcore/ |
| H A D | mcore.c | 804 unsigned HOST_WIDE_INT bit, shf, rot; in try_constant_tricks() local 867 shf = value; in try_constant_tricks() 888 if (shf & 1) in try_constant_tricks() 889 shf = 0; /* Can't use logical shift, low order bit is one. */ in try_constant_tricks() 891 shf >>= 1; in try_constant_tricks() 893 if (shf != 0 && const_ok_for_mcore (shf)) in try_constant_tricks() 896 *x = shf; in try_constant_tricks()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/mcore/ |
| H A D | mcore.cc | 804 unsigned HOST_WIDE_INT bit, shf, rot; in try_constant_tricks() local 867 shf = value; in try_constant_tricks() 888 if (shf & 1) in try_constant_tricks() 889 shf = 0; /* Can't use logical shift, low order bit is one. */ in try_constant_tricks() 891 shf >>= 1; in try_constant_tricks() 893 if (shf != 0 && const_ok_for_mcore (shf)) in try_constant_tricks() 896 *x = shf; in try_constant_tricks()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/csky/ |
| H A D | csky.c | 3503 unsigned HOST_WIDE_INT bit, shf, rot, lobits, hibits; in try_csky_constant_tricks() local 3587 shf = value; in try_csky_constant_tricks() 3607 if (shf & 1) in try_csky_constant_tricks() 3608 shf = 0; in try_csky_constant_tricks() 3610 shf >>= 1; in try_csky_constant_tricks() 3612 if (shf != 0 && const_ok_for_cskyv2 (shf) in try_csky_constant_tricks() 3613 && !CSKY_CONST_OK_FOR_MOVIH (shf)) in try_csky_constant_tricks() 3616 *x = shf; in try_csky_constant_tricks() 3696 shf = value; in try_csky_constant_tricks() 3716 if (shf & 1) in try_csky_constant_tricks() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/csky/ |
| H A D | csky.cc | 3666 unsigned HOST_WIDE_INT bit, shf, rot, lobits, hibits; in try_csky_constant_tricks() local 3750 shf = value; in try_csky_constant_tricks() 3770 if (shf & 1) in try_csky_constant_tricks() 3771 shf = 0; in try_csky_constant_tricks() 3773 shf >>= 1; in try_csky_constant_tricks() 3775 if (shf != 0 && const_ok_for_cskyv2 (shf) in try_csky_constant_tricks() 3776 && !CSKY_CONST_OK_FOR_MOVIH (shf)) in try_csky_constant_tricks() 3779 *x = shf; in try_csky_constant_tricks() 3859 shf = value; in try_csky_constant_tricks() 3879 if (shf & 1) in try_csky_constant_tricks() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/mips/ |
| H A D | i6400.md | 67 ;; shifts, nloc, nlzc, bneg, bclr, shf
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/mips/ |
| H A D | i6400.md | 67 ;; shifts, nloc, nlzc, bneg, bclr, shf
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXInstrInfo.td | 1188 // Rotate: Use ptx shf instruction if available. 1193 // r2 = shf.l r1, r1, n 1196 "shf.l.wrap.b32 \t$dst, $src, $src, $amt;", 1202 "shf.l.wrap.b32 \t$dst, $src, $src, $amt;", 1208 // r2 = shf.r r1, r1, n 1211 "shf.r.wrap.b32 \t$dst, $src, $src, $amt;", 1217 "shf.r.wrap.b32 \t$dst, $src, $src, $amt;", 1336 "shf.l.clamp.b32 \t$dst, $lo, $hi, $amt;", 1343 "shf.r.clamp.b32 \t$dst, $lo, $hi, $amt;",
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | output.h | 285 is_section_flag_set(elfcpp::Elf_Xword shf) const in is_section_flag_set() argument 286 { return this->do_is_section_flag_set(shf); } in is_section_flag_set()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | output.h | 285 is_section_flag_set(elfcpp::Elf_Xword shf) const in is_section_flag_set() argument 286 { return this->do_is_section_flag_set(shf); } in is_section_flag_set()
|