Lines Matching defs:nbits
334 int parsebits(struct function *fp, char *bitstring, int nbits);
335 int parseentrybits(struct entry *ep, char *bitstring, int nbits, int issplice);
342 int parsebitsplice(struct function *fp, char *bitstring, int nbits,
352 void showbits(FILE *f, struct entry *ep, int nbits, bits highlight);
389 bits allbitsset(int nbits);
563 /* A function in the description file. nbits and nargs are -1 until the
569 int nbits; /* Number of bits in the bitpattern, 0 if none. */
596 fp->nbits = fp->nargs = -1; /* nbits will be set correctly later. */
616 if (fp->nbits != 0) {
688 /* Parse the bitstring supplied for the given function. nbits says how many
690 int parsebits(struct function *fp, char *bitstring, int nbits) {
691 if (fp->nbits < 0)
692 fp->nbits = nbits;
693 else if (fp->nbits != nbits) {
695 progname, filename, lineno, nbits);
697 fp->name, fp->nbits);
700 return parseentrybits(fp->last, bitstring, nbits, 0);
706 int parseentrybits(struct entry *ep, char *bitstring, int nbits, int issplice) {
713 for (i = 0; i < nbits; i++) {
714 bit = bitstring[nbits - 1 - i];
739 for (j = i + 1; j < nbits && bitstring[nbits - 1 - j] == bit; j++)
876 width += fp->nbits;
1136 int nbits;
1150 int parsebitsplice(struct function *fp, char *bitstring, int nbits,
1159 splicep->nbits = nbits;
1160 if (parseentrybits(&splicep->entry, bitstring, nbits, 1) != 0)
1212 allbits = allbitsset(fp->nbits);
1384 if (fp->nbits == 0 && fp->nargs == 0)
1387 showbits(f, ep, fp->nbits, 0);
1388 showargs(f, fp->args, maxargwidth - fp->nbits);
1395 showbits(f, ep, fp->nbits, highlight);
1401 void showbits(FILE *f, struct entry *ep, int nbits, bits highlight) {
1406 if (nbits == 0)
1408 i = 1 << (nbits - 1);
1477 showbits(f, &bsp->entry, bsp->nbits, 0);
1707 if (fp->nbits > 0 && fp->nargs > 0)
1720 if (fp->nbits > 0) {
1724 if (bp->mask != allbitsset(fp->nbits))
1800 if (fp->nbits > 0) {
1868 allbits = allbitsset(fp->nbits);
2138 int nbits;
2145 nbits = fp->nbits;
2149 if (nbits > 0) {
2150 nbits = 0;
2325 int nbits;
2327 for (nbits = 0; x != 0; x >>= 1) {
2329 nbits++;
2331 return nbits;
2335 bits allbitsset(int nbits) {
2336 return (nbits == MAXBITS) ? ~0 : (1 << nbits) - 1;