Lines Matching refs:opStack

315 #define	DEBUGSTR va("%s%i", VM_Indent(vm), opStack-stack )
319 int *opStack; in VM_CallInterpreted() local
351 opStack = stack; in VM_CallInterpreted()
382 r0 = ((int *)opStack)[0]; in VM_CallInterpreted()
383 r1 = ((int *)opStack)[-1]; in VM_CallInterpreted()
390 if ( opStack < stack ) { in VM_CallInterpreted()
393 if ( opStack >= stack+OPSTACK_SIZE ) { in VM_CallInterpreted()
421 opStack++; in VM_CallInterpreted()
423 r0 = *opStack = r2; in VM_CallInterpreted()
428 opStack++; in VM_CallInterpreted()
430 r0 = *opStack = r2+programStack; in VM_CallInterpreted()
437 if ( *opStack & 3 ) { in VM_CallInterpreted()
441 r0 = *opStack = *(int *)&image[ r0&dataMask&~3 ]; in VM_CallInterpreted()
444 r0 = *opStack = *(unsigned short *)&image[ r0&dataMask&~1 ]; in VM_CallInterpreted()
447 r0 = *opStack = image[ r0&dataMask ]; in VM_CallInterpreted()
452 opStack -= 2; in VM_CallInterpreted()
456 opStack -= 2; in VM_CallInterpreted()
460 opStack -= 2; in VM_CallInterpreted()
466 opStack--; in VM_CallInterpreted()
487 opStack -= 2; in VM_CallInterpreted()
497 opStack--; in VM_CallInterpreted()
542 opStack++; in VM_CallInterpreted()
543 *opStack = r; in VM_CallInterpreted()
560 opStack++; in VM_CallInterpreted()
563 opStack--; in VM_CallInterpreted()
625 opStack--; in VM_CallInterpreted()
629 opStack -= 2; in VM_CallInterpreted()
639 opStack -= 2; in VM_CallInterpreted()
649 opStack -= 2; in VM_CallInterpreted()
659 opStack -= 2; in VM_CallInterpreted()
669 opStack -= 2; in VM_CallInterpreted()
679 opStack -= 2; in VM_CallInterpreted()
689 opStack -= 2; in VM_CallInterpreted()
699 opStack -= 2; in VM_CallInterpreted()
709 opStack -= 2; in VM_CallInterpreted()
719 opStack -= 2; in VM_CallInterpreted()
729 if ( ((float *)opStack)[-1] == *(float *)opStack ) { in VM_CallInterpreted()
731 opStack -= 2; in VM_CallInterpreted()
735 opStack -= 2; in VM_CallInterpreted()
740 if ( ((float *)opStack)[-1] != *(float *)opStack ) { in VM_CallInterpreted()
742 opStack -= 2; in VM_CallInterpreted()
746 opStack -= 2; in VM_CallInterpreted()
751 if ( ((float *)opStack)[-1] < *(float *)opStack ) { in VM_CallInterpreted()
753 opStack -= 2; in VM_CallInterpreted()
757 opStack -= 2; in VM_CallInterpreted()
762 if ( ((float *)opStack)[-1] <= *(float *)opStack ) { in VM_CallInterpreted()
764 opStack -= 2; in VM_CallInterpreted()
768 opStack -= 2; in VM_CallInterpreted()
773 if ( ((float *)opStack)[-1] > *(float *)opStack ) { in VM_CallInterpreted()
775 opStack -= 2; in VM_CallInterpreted()
779 opStack -= 2; in VM_CallInterpreted()
784 if ( ((float *)opStack)[-1] >= *(float *)opStack ) { in VM_CallInterpreted()
786 opStack -= 2; in VM_CallInterpreted()
790 opStack -= 2; in VM_CallInterpreted()
798 *opStack = -r0; in VM_CallInterpreted()
801 opStack[-1] = r1 + r0; in VM_CallInterpreted()
802 opStack--; in VM_CallInterpreted()
805 opStack[-1] = r1 - r0; in VM_CallInterpreted()
806 opStack--; in VM_CallInterpreted()
809 opStack[-1] = r1 / r0; in VM_CallInterpreted()
810 opStack--; in VM_CallInterpreted()
813 opStack[-1] = ((unsigned)r1) / ((unsigned)r0); in VM_CallInterpreted()
814 opStack--; in VM_CallInterpreted()
817 opStack[-1] = r1 % r0; in VM_CallInterpreted()
818 opStack--; in VM_CallInterpreted()
821 opStack[-1] = ((unsigned)r1) % (unsigned)r0; in VM_CallInterpreted()
822 opStack--; in VM_CallInterpreted()
825 opStack[-1] = r1 * r0; in VM_CallInterpreted()
826 opStack--; in VM_CallInterpreted()
829 opStack[-1] = ((unsigned)r1) * ((unsigned)r0); in VM_CallInterpreted()
830 opStack--; in VM_CallInterpreted()
834 opStack[-1] = ((unsigned)r1) & ((unsigned)r0); in VM_CallInterpreted()
835 opStack--; in VM_CallInterpreted()
838 opStack[-1] = ((unsigned)r1) | ((unsigned)r0); in VM_CallInterpreted()
839 opStack--; in VM_CallInterpreted()
842 opStack[-1] = ((unsigned)r1) ^ ((unsigned)r0); in VM_CallInterpreted()
843 opStack--; in VM_CallInterpreted()
846 *opStack = ~ ((unsigned)r0); in VM_CallInterpreted()
850 opStack[-1] = r1 << r0; in VM_CallInterpreted()
851 opStack--; in VM_CallInterpreted()
854 opStack[-1] = r1 >> r0; in VM_CallInterpreted()
855 opStack--; in VM_CallInterpreted()
858 opStack[-1] = ((unsigned)r1) >> r0; in VM_CallInterpreted()
859 opStack--; in VM_CallInterpreted()
863 *(float *)opStack = -*(float *)opStack; in VM_CallInterpreted()
866 *(float *)(opStack-1) = *(float *)(opStack-1) + *(float *)opStack; in VM_CallInterpreted()
867 opStack--; in VM_CallInterpreted()
870 *(float *)(opStack-1) = *(float *)(opStack-1) - *(float *)opStack; in VM_CallInterpreted()
871 opStack--; in VM_CallInterpreted()
874 *(float *)(opStack-1) = *(float *)(opStack-1) / *(float *)opStack; in VM_CallInterpreted()
875 opStack--; in VM_CallInterpreted()
878 *(float *)(opStack-1) = *(float *)(opStack-1) * *(float *)opStack; in VM_CallInterpreted()
879 opStack--; in VM_CallInterpreted()
883 *(float *)opStack = (float)*opStack; in VM_CallInterpreted()
886 *opStack = (int) *(float *)opStack; in VM_CallInterpreted()
889 *opStack = (signed char)*opStack; in VM_CallInterpreted()
892 *opStack = (short)*opStack; in VM_CallInterpreted()
900 if ( opStack != &stack[1] ) { in VM_CallInterpreted()
901 Com_Error( ERR_DROP, "Interpreter error: opStack = %ld", (long int) (opStack - stack) ); in VM_CallInterpreted()
907 return *opStack; in VM_CallInterpreted()