⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opfile.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
📖 第 1 页 / 共 5 页
字号:
          if (param[index+1] == NULL) break;          if (strcmp(param[index], "dsp") == 0)          {                ++index;                if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x1;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x1; 	  }          else if (strcmp(param[index], "sram&dram") == 0)          {                ++index;                if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data |= 0x2;                else if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data &= ~0x2;          }          else if (strcmp(param[index], "video_memories") == 0)           {                 ++index;                 if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x4;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x4;           }          else if (strcmp(param[index], "lookup_tables") == 0)           {                 ++index;                 if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x8;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x8;           }          else if (strcmp(param[index], "vectors_generation") == 0)          {                ++index;                if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data |= 0x10;                else if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data &= ~0x10;          }          else if (strcmp(param[index], "polygons_generation") == 0)           {                 ++index;                 if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x20;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x20;           }          else if (strcmp(param[index], "transformations") == 0)           {                 ++index;                 if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x40;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x40;           }          else if (strcmp(param[index], "clipping&hidden") == 0)           {                 ++index;                 if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x80;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x80;           }          else if (strcmp(param[index], "depth_cueing") == 0)           {                 ++index;                 if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x100;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x100;           }          else if (strcmp(param[index], "lighting&shading") == 0)           {                 ++index;                 if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x200;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x200;           }          else if (strcmp(param[index], "arbitration") == 0)           {                 ++index;                 if (strcmp(param[index], disable) == 0)                   (int)tests[test_id]->data |= 0x400;                 else if (strcmp(param[index], enable) == 0)                   (int)tests[test_id]->data &= ~0x400;           }          else if (strcmp(param[index], "loops_per_function") == 0)           {                 ++index; 		(int)tests[test_id]->data = 			((int)tests[test_id]->data&~0xFFFFF000)					| atoi(param[index]) << 12;          }          else if (strcmp(param[index], "loops_per_board") == 0)          {                ++index;                (int)tests[test_id]->special = atoi(param[index]);          }	  ++index;	}/* end of while */	break;      case GT:        while (param[index] != NULL)    /* still more to be checked */        {          if (param[index+1] == NULL) break;          if (strcmp(param[index], "video_memory") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x1;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x1;          }          else if (strcmp(param[index], "cluts&wlut") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x2;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x2;          }          else if (strcmp(param[index], "fe_local_data_memory") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x4;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x4;          }          else if (strcmp(param[index], "su_shared_ram") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x8;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x8;          }          else if (strcmp(param[index], "rendering_pipeline") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x10;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x10;          }          else if (strcmp(param[index], "acc_video_memory") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x20;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x20;          }          else if (strcmp(param[index], "fp_output_section") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x40;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x40;          }          else if (strcmp(param[index], "vectors") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x80;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x80;          }          else if (strcmp(param[index], "triangles") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x100;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x100;          }          else if (strcmp(param[index], "spline_curves") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x200;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x200;          }          else if (strcmp(param[index], "viewport_clipping") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x400;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x400;          }          else if (strcmp(param[index], "hidden_surface_removal") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x800;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x800;          }          else if (strcmp(param[index], "polygon_edges") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x1000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x1000;          }          else if (strcmp(param[index], "transparency") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x2000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x2000;          }          else if (strcmp(param[index], "depth_cueing") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x4000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x4000;          }          else if (strcmp(param[index], "lighting&shading") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x8000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x8000;          }          else if (strcmp(param[index], "text") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x10000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x10000;          }          else if (strcmp(param[index], "picking") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x20000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x20000;          }          else if (strcmp(param[index], "arbitration") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x40000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x40000;          }          else if (strcmp(param[index], "stereo") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x80000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x80000;          }          else if (strcmp(param[index], "lightpen") == 0)          {                ++index;                if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data |= 0x100000;                else if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data &= ~0x100000;          }          else if (strcmp(param[index], "loops_per_function") == 0)          {                ++index;                (int)tests[test_id]->data =                        ((int)tests[test_id]->data&= ~0xFFE00000)                                        | atoi(param[index]) << 21;          }          else if (strcmp(param[index], "loops_per_board") == 0)          {                ++index;                (int)tests[test_id]->special = atoi(param[index]);          }          ++index;        }/* end of while */        break;      case MP4:        while (param[index] != NULL)    /* still more to be checked */        {          if (param[index+1] == NULL) break;          if (strcmp(param[index], "lock_unlock") == 0)          {                ++index;                if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data |= 0x1;                else if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data &= ~0x1;          }          else if (strcmp(param[index], "data_io") == 0)          {                ++index;                if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data |= 0x2;                else if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data &= ~0x2;          }          else if (strcmp(param[index], "FPU_check") == 0)          {                ++index;                if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data |= 0x4;                else if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data &= ~0x4;          }          else if (strcmp(param[index], "cache_consistency") == 0)          {                ++index;                if (strcmp(param[index], disable) == 0)                  (int)tests[test_id]->data |= 0x8;                else if (strcmp(param[index], enable) == 0)                  (int)tests[test_id]->data &= ~0x8;          }	  else if (strncmp(param[index], "processor_", 10) == 0)	  {	        processor_num = parse_str(param[index]);		++index;		if (strcmp(param[index], disable) == 0)		  (int)tests[test_id]->data |= (0x10 << processor_num);		else if (strcmp(param[index], enable) == 0)		  (int)tests[test_id]->data &= ~(0x10 << processor_num);	  }            ++index;        } /* end of while */        break;      case ZEBRA1:        while (param[index] != NULL)    /* still more to be checked */        {          if (param[index+1] == NULL) break;          if (strcmp(param[index], "mode") == 0)          {                ++index;                (int)tests[test_id]->data &= ~0xC;                if (strcmp(param[index], "medium") == 0)                  (int)tests[test_id]->data |= 1 << 2;                else if (strcmp(param[index], "extended") == 0)                  (int)tests[test_id]->data |= 2 << 2;                else if (strcmp(param[index], "fast") == 0)                  (int)tests[test_id]->data |= 0 << 2;  /* do nothing */          }          else if (strcmp(param[index], "access") == 0)          {                ++index;                if (strcmp(param[index], "readonly") == 0)                  (int)tests[test_id]->data |= 0x1;                else if (strcmp(param[index], "writeonly") == 0)                  (int)tests[test_id]->data &= ~0x3;          }          ++index;        }/* end of while */        break;     case ZEBRA2:        while (param[index] != NULL)    /* still more to be checked */        {          if (param[index+1] == NULL) break;           if (strcmp(param[index], "mode") == 0)          {                ++index;                (int)tests[test_id]->data &= ~0xC;                 if (strcmp(param[index], "medium") == 0)                   (int)tests[test_id]->data |= 1 << 2;                 else if (strcmp(param[index], "extended") == 0)                   (int)tests[test_id]->data |= 2 << 2;                 else if (strcmp(param[index], "fast") == 0)           

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -