Lines Matching defs:acc
57 static int CLR =0; /* CLR clears display. if 1, clears acc, also */
63 static double acc =0.0;
525 acc=PopNum();
527 case kADD: acc += dnum; break;
528 case kSUB: acc -= dnum; break;
529 case kMUL: acc *= dnum; break;
530 case kDIV: acc /= dnum; break;
531 case kPOW: acc = pow(acc,dnum); break;
532 case kMOD: acc = (long)acc % (long)dnum; break;
533 case kAND: acc = (long)acc & (long)dnum; break;
534 case kOR: acc = (long)acc | (long)dnum; break;
535 case kXOR: acc = (long)acc ^ (long)dnum; break;
536 case kSHL: acc = (long)acc << (long)dnum; break;
537 case kSHR: acc = (long)acc >> (long)dnum; break;
540 PushNum(acc);
542 format_double(acc);
544 dnum=acc;
565 acc = PopNum();
567 case kADD: acc += dnum; break;
568 case kSUB: acc -= dnum; break;
569 case kMUL: acc *= dnum; break;
570 case kDIV: acc /= dnum; break;
571 case kPOW: acc = pow(acc,dnum); break;
573 case kMOD: acc = (long)acc % (long)dnum; break;
574 case kAND: acc = (long)acc & (long)dnum; break;
575 case kOR: acc = (long)acc | (long)dnum; break;
576 case kXOR: acc = (long)acc ^ (long)dnum; break;
577 case kSHL: acc = (long)acc << (long)dnum; break;
578 case kSHR: acc = (long)acc >> (long)dnum; break;
581 format_double(acc);
587 dnum = acc;
626 acc=PopNum();
629 case kADD: acc += dnum;
631 case kSUB: acc -= dnum;
633 case kMUL: acc *= dnum;
635 case kDIV: acc /= dnum;
637 case kPOW: acc = pow(acc,dnum);
640 PushNum(acc);
642 case kMOD: acc = (long)acc % (long)dnum;
644 case kAND: acc = (long)acc & (long)dnum;
646 case kOR: acc = (long)acc | (long)dnum;
648 case kXOR: acc = (long)acc ^ (long)dnum;
650 case kSHL: acc = (long)acc << (long)dnum;
652 case kSHR: acc = (long)acc >> (long)dnum;
655 dnum=acc;
709 acc=PopNum();
711 case kADD: acc += dnum;
713 case kSUB: acc -= dnum;
715 case kMUL: acc *= dnum;
717 case kDIV: acc /= dnum;
719 case kPOW: acc = pow(acc,dnum);
721 case kMOD: acc = (long)acc % (long)dnum;
723 case kAND: acc = (long)acc & (long)dnum;
725 case kOR: acc = (long)acc | (long)dnum;
727 case kXOR: acc = (long)acc ^ (long)dnum;
729 case kSHL: acc = (long)acc << (long)dnum;
731 case kSHR: acc = (long)acc >> (long)dnum;
734 dnum=acc;