diff src/filters/hq2x.h @ 27:b970226568d2

brought in filters package
author Robert McIntyre <rlm@mit.edu>
date Sun, 04 Mar 2012 20:32:31 -0600
parents f9f4f1b99eed
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/filters/hq2x.h	Sun Mar 04 20:32:31 2012 -0600
     1.3 @@ -0,0 +1,1824 @@
     1.4 +case 0 : 
     1.5 +case 1 : 
     1.6 +case 4 : 
     1.7 +case 5 : 
     1.8 +case 32 : 
     1.9 +case 33 : 
    1.10 +case 36 : 
    1.11 +case 37 : 
    1.12 +case 128 : 
    1.13 +case 129 : 
    1.14 +case 132 : 
    1.15 +case 133 : 
    1.16 +case 160 : 
    1.17 +case 161 : 
    1.18 +case 164 : 
    1.19 +case 165 : 
    1.20 +{
    1.21 +  P0 = I211(4, 1, 3);
    1.22 +  P1 = I211(4, 1, 5);
    1.23 +  P2 = I211(4, 3, 7);
    1.24 +  P3 = I211(4, 5, 7);
    1.25 +} break;
    1.26 +case 2 : 
    1.27 +case 34 : 
    1.28 +case 130 : 
    1.29 +case 162 : 
    1.30 +{
    1.31 +  P0 = I31(4, 0);
    1.32 +  P1 = I31(4, 2);
    1.33 +  P2 = I211(4, 3, 7);
    1.34 +  P3 = I211(4, 5, 7);
    1.35 +} break;
    1.36 +case 3 : 
    1.37 +case 35 : 
    1.38 +case 131 : 
    1.39 +case 163 : 
    1.40 +{
    1.41 +  P0 = I31(4, 3);
    1.42 +  P1 = I31(4, 2);
    1.43 +  P2 = I211(4, 3, 7);
    1.44 +  P3 = I211(4, 5, 7);
    1.45 +} break;
    1.46 +case 6 : 
    1.47 +case 38 : 
    1.48 +case 134 : 
    1.49 +case 166 : 
    1.50 +{
    1.51 +  P0 = I31(4, 0);
    1.52 +  P1 = I31(4, 5);
    1.53 +  P2 = I211(4, 3, 7);
    1.54 +  P3 = I211(4, 5, 7);
    1.55 +} break;
    1.56 +case 7 : 
    1.57 +case 39 : 
    1.58 +case 135 : 
    1.59 +case 167 : 
    1.60 +{
    1.61 +  P0 = I31(4, 3);
    1.62 +  P1 = I31(4, 5);
    1.63 +  P2 = I211(4, 3, 7);
    1.64 +  P3 = I211(4, 5, 7);
    1.65 +} break;
    1.66 +case 8 : 
    1.67 +case 12 : 
    1.68 +case 136 : 
    1.69 +case 140 : 
    1.70 +{
    1.71 +  P0 = I31(4, 0);
    1.72 +  P1 = I211(4, 1, 5);
    1.73 +  P2 = I31(4, 6);
    1.74 +  P3 = I211(4, 5, 7);
    1.75 +} break;
    1.76 +case 9 : 
    1.77 +case 13 : 
    1.78 +case 137 : 
    1.79 +case 141 : 
    1.80 +{
    1.81 +  P0 = I31(4, 1);
    1.82 +  P1 = I211(4, 1, 5);
    1.83 +  P2 = I31(4, 6);
    1.84 +  P3 = I211(4, 5, 7);
    1.85 +} break;
    1.86 +case 10 : 
    1.87 +case 138 : 
    1.88 +{
    1.89 +  P1 = I31(4, 2);
    1.90 +  P2 = I31(4, 6);
    1.91 +  P3 = I211(4, 5, 7);
    1.92 +  if (MUL) {
    1.93 +    P0 = I31(4, 0);
    1.94 +  } else {
    1.95 +    P0 = I211(4, 1, 3);
    1.96 +  }
    1.97 +} break;
    1.98 +case 11 : 
    1.99 +case 139 : 
   1.100 +{
   1.101 +  P1 = I31(4, 2);
   1.102 +  P2 = I31(4, 6);
   1.103 +  P3 = I211(4, 5, 7);
   1.104 +  if (MUL) {
   1.105 +    P0 = IC(4);
   1.106 +  } else {
   1.107 +    P0 = I211(4, 1, 3);
   1.108 +  }
   1.109 +} break;
   1.110 +case 14 : 
   1.111 +case 142 : 
   1.112 +{
   1.113 +  P2 = I31(4, 6);
   1.114 +  P3 = I211(4, 5, 7);
   1.115 +  if (MUL) {
   1.116 +    P0 = I31(4, 0);
   1.117 +    P1 = I31(4, 5);
   1.118 +  } else {
   1.119 +    P0 = I332(1, 3, 4);
   1.120 +    P1 = I521(4, 1, 5);
   1.121 +  }
   1.122 +} break;
   1.123 +case 15 : 
   1.124 +case 143 : 
   1.125 +{
   1.126 +  P2 = I31(4, 6);
   1.127 +  P3 = I211(4, 5, 7);
   1.128 +  if (MUL) {
   1.129 +    P0 = IC(4);
   1.130 +    P1 = I31(4, 5);
   1.131 +  } else {
   1.132 +    P0 = I332(1, 3, 4);
   1.133 +    P1 = I521(4, 1, 5);
   1.134 +  }
   1.135 +} break;
   1.136 +case 16 : 
   1.137 +case 17 : 
   1.138 +case 48 : 
   1.139 +case 49 : 
   1.140 +{
   1.141 +  P0 = I211(4, 1, 3);
   1.142 +  P1 = I31(4, 2);
   1.143 +  P2 = I211(4, 3, 7);
   1.144 +  P3 = I31(4, 8);
   1.145 +} break;
   1.146 +case 18 : 
   1.147 +case 50 : 
   1.148 +{
   1.149 +  P0 = I31(4, 0);
   1.150 +  P2 = I211(4, 3, 7);
   1.151 +  P3 = I31(4, 8);
   1.152 +  if (MUR) {
   1.153 +    P1 = I31(4, 2);
   1.154 +  } else {
   1.155 +    P1 = I211(4, 1, 5);
   1.156 +  }
   1.157 +} break;
   1.158 +case 19 : 
   1.159 +case 51 : 
   1.160 +{
   1.161 +  P2 = I211(4, 3, 7);
   1.162 +  P3 = I31(4, 8);
   1.163 +  if (MUR) {
   1.164 +    P0 = I31(4, 3);
   1.165 +    P1 = I31(4, 2);
   1.166 +  } else {
   1.167 +    P0 = I521(4, 1, 3);
   1.168 +    P1 = I332(1, 5, 4);
   1.169 +  }
   1.170 +} break;
   1.171 +case 20 : 
   1.172 +case 21 : 
   1.173 +case 52 : 
   1.174 +case 53 : 
   1.175 +{
   1.176 +  P0 = I211(4, 1, 3);
   1.177 +  P1 = I31(4, 1);
   1.178 +  P2 = I211(4, 3, 7);
   1.179 +  P3 = I31(4, 8);
   1.180 +} break;
   1.181 +case 22 : 
   1.182 +case 54 : 
   1.183 +{
   1.184 +  P0 = I31(4, 0);
   1.185 +  P2 = I211(4, 3, 7);
   1.186 +  P3 = I31(4, 8);
   1.187 +  if (MUR) {
   1.188 +    P1 = IC(4);
   1.189 +  } else {
   1.190 +    P1 = I211(4, 1, 5);
   1.191 +  }
   1.192 +} break;
   1.193 +case 23 : 
   1.194 +case 55 : 
   1.195 +{
   1.196 +  P2 = I211(4, 3, 7);
   1.197 +  P3 = I31(4, 8);
   1.198 +  if (MUR) {
   1.199 +    P0 = I31(4, 3);
   1.200 +    P1 = IC(4);
   1.201 +  } else {
   1.202 +    P0 = I521(4, 1, 3);
   1.203 +    P1 = I332(1, 5, 4);
   1.204 +  }
   1.205 +} break;
   1.206 +case 24 : 
   1.207 +case 66 : 
   1.208 +{
   1.209 +  P0 = I31(4, 0);
   1.210 +  P1 = I31(4, 2);
   1.211 +  P2 = I31(4, 6);
   1.212 +  P3 = I31(4, 8);
   1.213 +} break;
   1.214 +case 25 : 
   1.215 +{
   1.216 +  P0 = I31(4, 1);
   1.217 +  P1 = I31(4, 2);
   1.218 +  P2 = I31(4, 6);
   1.219 +  P3 = I31(4, 8);
   1.220 +} break;
   1.221 +case 26 : 
   1.222 +case 31 : 
   1.223 +case 95 : 
   1.224 +{
   1.225 +  P2 = I31(4, 6);
   1.226 +  P3 = I31(4, 8);
   1.227 +  if (MUL) {
   1.228 +    P0 = IC(4);
   1.229 +  } else {
   1.230 +    P0 = I211(4, 1, 3);
   1.231 +  }
   1.232 +  if (MUR) {
   1.233 +    P1 = IC(4);
   1.234 +  } else {
   1.235 +    P1 = I211(4, 1, 5);
   1.236 +  }
   1.237 +} break;
   1.238 +case 27 : 
   1.239 +case 75 : 
   1.240 +{
   1.241 +  P1 = I31(4, 2);
   1.242 +  P2 = I31(4, 6);
   1.243 +  P3 = I31(4, 8);
   1.244 +  if (MUL) {
   1.245 +    P0 = IC(4);
   1.246 +  } else {
   1.247 +    P0 = I211(4, 1, 3);
   1.248 +  }
   1.249 +} break;
   1.250 +case 28 : 
   1.251 +{
   1.252 +  P0 = I31(4, 0);
   1.253 +  P1 = I31(4, 1);
   1.254 +  P2 = I31(4, 6);
   1.255 +  P3 = I31(4, 8);
   1.256 +} break;
   1.257 +case 29 : 
   1.258 +{
   1.259 +  P0 = I31(4, 1);
   1.260 +  P1 = I31(4, 1);
   1.261 +  P2 = I31(4, 6);
   1.262 +  P3 = I31(4, 8);
   1.263 +} break;
   1.264 +case 30 : 
   1.265 +case 86 : 
   1.266 +{
   1.267 +  P0 = I31(4, 0);
   1.268 +  P2 = I31(4, 6);
   1.269 +  P3 = I31(4, 8);
   1.270 +  if (MUR) {
   1.271 +    P1 = IC(4);
   1.272 +  } else {
   1.273 +    P1 = I211(4, 1, 5);
   1.274 +  }
   1.275 +} break;
   1.276 +case 40 : 
   1.277 +case 44 : 
   1.278 +case 168 : 
   1.279 +case 172 : 
   1.280 +{
   1.281 +  P0 = I31(4, 0);
   1.282 +  P1 = I211(4, 1, 5);
   1.283 +  P2 = I31(4, 7);
   1.284 +  P3 = I211(4, 5, 7);
   1.285 +} break;
   1.286 +case 41 : 
   1.287 +case 45 : 
   1.288 +case 169 : 
   1.289 +case 173 : 
   1.290 +{
   1.291 +  P0 = I31(4, 1);
   1.292 +  P1 = I211(4, 1, 5);
   1.293 +  P2 = I31(4, 7);
   1.294 +  P3 = I211(4, 5, 7);
   1.295 +} break;
   1.296 +case 42 : 
   1.297 +case 170 : 
   1.298 +{
   1.299 +  P1 = I31(4, 2);
   1.300 +  P3 = I211(4, 5, 7);
   1.301 +  if (MUL) {
   1.302 +    P0 = I31(4, 0);
   1.303 +    P2 = I31(4, 7);
   1.304 +  } else {
   1.305 +    P0 = I332(1, 3, 4);
   1.306 +    P2 = I521(4, 3, 7);
   1.307 +  }
   1.308 +} break;
   1.309 +case 43 : 
   1.310 +case 171 : 
   1.311 +{
   1.312 +  P1 = I31(4, 2);
   1.313 +  P3 = I211(4, 5, 7);
   1.314 +  if (MUL) {
   1.315 +    P0 = IC(4);
   1.316 +    P2 = I31(4, 7);
   1.317 +  } else {
   1.318 +    P0 = I332(1, 3, 4);
   1.319 +    P2 = I521(4, 3, 7);
   1.320 +  }
   1.321 +} break;
   1.322 +case 46 : 
   1.323 +case 174 : 
   1.324 +{
   1.325 +  P1 = I31(4, 5);
   1.326 +  P2 = I31(4, 7);
   1.327 +  P3 = I211(4, 5, 7);
   1.328 +  if (MUL) {
   1.329 +    P0 = I31(4, 0);
   1.330 +  } else {
   1.331 +    P0 = I611(4, 1, 3);
   1.332 +  }
   1.333 +} break;
   1.334 +case 47 : 
   1.335 +case 175 : 
   1.336 +{
   1.337 +  P1 = I31(4, 5);
   1.338 +  P2 = I31(4, 7);
   1.339 +  P3 = I211(4, 5, 7);
   1.340 +  if (MUL) {
   1.341 +    P0 = IC(4);
   1.342 +  } else {
   1.343 +    P0 = I1411(4, 1, 3);
   1.344 +  }
   1.345 +} break;
   1.346 +case 56 : 
   1.347 +{
   1.348 +  P0 = I31(4, 0);
   1.349 +  P1 = I31(4, 2);
   1.350 +  P2 = I31(4, 7);
   1.351 +  P3 = I31(4, 8);
   1.352 +} break;
   1.353 +case 57 : 
   1.354 +{
   1.355 +  P0 = I31(4, 1);
   1.356 +  P1 = I31(4, 2);
   1.357 +  P2 = I31(4, 7);
   1.358 +  P3 = I31(4, 8);
   1.359 +} break;
   1.360 +case 58 : 
   1.361 +{
   1.362 +  P2 = I31(4, 7);
   1.363 +  P3 = I31(4, 8);
   1.364 +  if (MUL) {
   1.365 +    P0 = I31(4, 0);
   1.366 +  } else {
   1.367 +    P0 = I611(4, 1, 3);
   1.368 +  }
   1.369 +  if (MUR) {
   1.370 +    P1 = I31(4, 2);
   1.371 +  } else {
   1.372 +    P1 = I611(4, 1, 5);
   1.373 +  }
   1.374 +} break;
   1.375 +case 59 : 
   1.376 +{
   1.377 +  P2 = I31(4, 7);
   1.378 +  P3 = I31(4, 8);
   1.379 +  if (MUL) {
   1.380 +    P0 = IC(4);
   1.381 +  } else {
   1.382 +    P0 = I211(4, 1, 3);
   1.383 +  }
   1.384 +  if (MUR) {
   1.385 +    P1 = I31(4, 2);
   1.386 +  } else {
   1.387 +    P1 = I611(4, 1, 5);
   1.388 +  }
   1.389 +} break;
   1.390 +case 60 : 
   1.391 +{
   1.392 +  P0 = I31(4, 0);
   1.393 +  P1 = I31(4, 1);
   1.394 +  P2 = I31(4, 7);
   1.395 +  P3 = I31(4, 8);
   1.396 +} break;
   1.397 +case 61 : 
   1.398 +{
   1.399 +  P0 = I31(4, 1);
   1.400 +  P1 = I31(4, 1);
   1.401 +  P2 = I31(4, 7);
   1.402 +  P3 = I31(4, 8);
   1.403 +} break;
   1.404 +case 62 : 
   1.405 +{
   1.406 +  P0 = I31(4, 0);
   1.407 +  P2 = I31(4, 7);
   1.408 +  P3 = I31(4, 8);
   1.409 +  if (MUR) {
   1.410 +    P1 = IC(4);
   1.411 +  } else {
   1.412 +    P1 = I211(4, 1, 5);
   1.413 +  }
   1.414 +} break;
   1.415 +case 63 : 
   1.416 +{
   1.417 +  P2 = I31(4, 7);
   1.418 +  P3 = I31(4, 8);
   1.419 +  if (MUL) {
   1.420 +    P0 = IC(4);
   1.421 +  } else {
   1.422 +    P0 = I1411(4, 1, 3);
   1.423 +  }
   1.424 +  if (MUR) {
   1.425 +    P1 = IC(4);
   1.426 +  } else {
   1.427 +    P1 = I211(4, 1, 5);
   1.428 +  }
   1.429 +} break;
   1.430 +case 64 : 
   1.431 +case 65 : 
   1.432 +case 68 : 
   1.433 +case 69 : 
   1.434 +{
   1.435 +  P0 = I211(4, 1, 3);
   1.436 +  P1 = I211(4, 1, 5);
   1.437 +  P2 = I31(4, 6);
   1.438 +  P3 = I31(4, 8);
   1.439 +} break;
   1.440 +case 67 : 
   1.441 +{
   1.442 +  P0 = I31(4, 3);
   1.443 +  P1 = I31(4, 2);
   1.444 +  P2 = I31(4, 6);
   1.445 +  P3 = I31(4, 8);
   1.446 +} break;
   1.447 +case 70 : 
   1.448 +{
   1.449 +  P0 = I31(4, 0);
   1.450 +  P1 = I31(4, 5);
   1.451 +  P2 = I31(4, 6);
   1.452 +  P3 = I31(4, 8);
   1.453 +} break;
   1.454 +case 71 : 
   1.455 +{
   1.456 +  P0 = I31(4, 3);
   1.457 +  P1 = I31(4, 5);
   1.458 +  P2 = I31(4, 6);
   1.459 +  P3 = I31(4, 8);
   1.460 +} break;
   1.461 +case 72 : 
   1.462 +case 76 : 
   1.463 +{
   1.464 +  P0 = I31(4, 0);
   1.465 +  P1 = I211(4, 1, 5);
   1.466 +  P3 = I31(4, 8);
   1.467 +  if (MDL) {
   1.468 +    P2 = I31(4, 6);
   1.469 +  } else {
   1.470 +    P2 = I211(4, 3, 7);
   1.471 +  }
   1.472 +} break;
   1.473 +case 73 : 
   1.474 +case 77 : 
   1.475 +{
   1.476 +  P1 = I211(4, 1, 5);
   1.477 +  P3 = I31(4, 8);
   1.478 +  if (MDL) {
   1.479 +    P0 = I31(4, 1);
   1.480 +    P2 = I31(4, 6);
   1.481 +  } else {
   1.482 +    P0 = I521(4, 3, 1);
   1.483 +    P2 = I332(3, 7, 4);
   1.484 +  }
   1.485 +} break;
   1.486 +case 74 : 
   1.487 +case 107 : 
   1.488 +case 123 : 
   1.489 +{
   1.490 +  P1 = I31(4, 2);
   1.491 +  P3 = I31(4, 8);
   1.492 +  if (MDL) {
   1.493 +    P2 = IC(4);
   1.494 +  } else {
   1.495 +    P2 = I211(4, 3, 7);
   1.496 +  }
   1.497 +  if (MUL) {
   1.498 +    P0 = IC(4);
   1.499 +  } else {
   1.500 +    P0 = I211(4, 1, 3);
   1.501 +  }
   1.502 +} break;
   1.503 +case 78 : 
   1.504 +{
   1.505 +  P1 = I31(4, 5);
   1.506 +  P3 = I31(4, 8);
   1.507 +  if (MDL) {
   1.508 +    P2 = I31(4, 6);
   1.509 +  } else {
   1.510 +    P2 = I611(4, 3, 7);
   1.511 +  }
   1.512 +  if (MUL) {
   1.513 +    P0 = I31(4, 0);
   1.514 +  } else {
   1.515 +    P0 = I611(4, 1, 3);
   1.516 +  }
   1.517 +} break;
   1.518 +case 79 : 
   1.519 +{
   1.520 +  P1 = I31(4, 5);
   1.521 +  P3 = I31(4, 8);
   1.522 +  if (MDL) {
   1.523 +    P2 = I31(4, 6);
   1.524 +  } else {
   1.525 +    P2 = I611(4, 3, 7);
   1.526 +  }
   1.527 +  if (MUL) {
   1.528 +    P0 = IC(4);
   1.529 +  } else {
   1.530 +    P0 = I211(4, 1, 3);
   1.531 +  }
   1.532 +} break;
   1.533 +case 80 : 
   1.534 +case 81 : 
   1.535 +{
   1.536 +  P0 = I211(4, 1, 3);
   1.537 +  P1 = I31(4, 2);
   1.538 +  P2 = I31(4, 6);
   1.539 +  if (MDR) {
   1.540 +    P3 = I31(4, 8);
   1.541 +  } else {
   1.542 +    P3 = I211(4, 5, 7);
   1.543 +  }
   1.544 +} break;
   1.545 +case 82 : 
   1.546 +case 214 : 
   1.547 +case 222 : 
   1.548 +{
   1.549 +  P0 = I31(4, 0);
   1.550 +  P2 = I31(4, 6);
   1.551 +  if (MDR) {
   1.552 +    P3 = IC(4);
   1.553 +  } else {
   1.554 +    P3 = I211(4, 5, 7);
   1.555 +  }
   1.556 +  if (MUR) {
   1.557 +    P1 = IC(4);
   1.558 +  } else {
   1.559 +    P1 = I211(4, 1, 5);
   1.560 +  }
   1.561 +} break;
   1.562 +case 83 : 
   1.563 +{
   1.564 +  P0 = I31(4, 3);
   1.565 +  P2 = I31(4, 6);
   1.566 +  if (MDR) {
   1.567 +    P3 = I31(4, 8);
   1.568 +  } else {
   1.569 +    P3 = I611(4, 5, 7);
   1.570 +  }
   1.571 +  if (MUR) {
   1.572 +    P1 = I31(4, 2);
   1.573 +  } else {
   1.574 +    P1 = I611(4, 1, 5);
   1.575 +  }
   1.576 +} break;
   1.577 +case 84 : 
   1.578 +case 85 : 
   1.579 +{
   1.580 +  P0 = I211(4, 1, 3);
   1.581 +  P2 = I31(4, 6);
   1.582 +  if (MDR) {
   1.583 +    P1 = I31(4, 1);
   1.584 +    P3 = I31(4, 8);
   1.585 +  } else {
   1.586 +    P1 = I521(4, 5, 1);
   1.587 +    P3 = I332(5, 7, 4);
   1.588 +  }
   1.589 +} break;
   1.590 +case 87 : 
   1.591 +{
   1.592 +  P0 = I31(4, 3);
   1.593 +  P2 = I31(4, 6);
   1.594 +  if (MDR) {
   1.595 +    P3 = I31(4, 8);
   1.596 +  } else {
   1.597 +    P3 = I611(4, 5, 7);
   1.598 +  }
   1.599 +  if (MUR) {
   1.600 +    P1 = IC(4);
   1.601 +  } else {
   1.602 +    P1 = I211(4, 1, 5);
   1.603 +  }
   1.604 +} break;
   1.605 +case 88 : 
   1.606 +case 248 : 
   1.607 +case 250 : 
   1.608 +{
   1.609 +  P0 = I31(4, 0);
   1.610 +  P1 = I31(4, 2);
   1.611 +  if (MDL) {
   1.612 +    P2 = IC(4);
   1.613 +  } else {
   1.614 +    P2 = I211(4, 3, 7);
   1.615 +  }
   1.616 +  if (MDR) {
   1.617 +    P3 = IC(4);
   1.618 +  } else {
   1.619 +    P3 = I211(4, 5, 7);
   1.620 +  }
   1.621 +} break;
   1.622 +case 89 : 
   1.623 +{
   1.624 +  P0 = I31(4, 1);
   1.625 +  P1 = I31(4, 2);
   1.626 +  if (MDL) {
   1.627 +    P2 = I31(4, 6);
   1.628 +  } else {
   1.629 +    P2 = I611(4, 3, 7);
   1.630 +  }
   1.631 +  if (MDR) {
   1.632 +    P3 = I31(4, 8);
   1.633 +  } else {
   1.634 +    P3 = I611(4, 5, 7);
   1.635 +  }
   1.636 +} break;
   1.637 +case 90 : 
   1.638 +{
   1.639 +  if (MDL) {
   1.640 +    P2 = I31(4, 6);
   1.641 +  } else {
   1.642 +    P2 = I611(4, 3, 7);
   1.643 +  }
   1.644 +  if (MDR) {
   1.645 +    P3 = I31(4, 8);
   1.646 +  } else {
   1.647 +    P3 = I611(4, 5, 7);
   1.648 +  }
   1.649 +  if (MUL) {
   1.650 +    P0 = I31(4, 0);
   1.651 +  } else {
   1.652 +    P0 = I611(4, 1, 3);
   1.653 +  }
   1.654 +  if (MUR) {
   1.655 +    P1 = I31(4, 2);
   1.656 +  } else {
   1.657 +    P1 = I611(4, 1, 5);
   1.658 +  }
   1.659 +} break;
   1.660 +case 91 : 
   1.661 +{
   1.662 +  if (MDL) {
   1.663 +    P2 = I31(4, 6);
   1.664 +  } else {
   1.665 +    P2 = I611(4, 3, 7);
   1.666 +  }
   1.667 +  if (MDR) {
   1.668 +    P3 = I31(4, 8);
   1.669 +  } else {
   1.670 +    P3 = I611(4, 5, 7);
   1.671 +  }
   1.672 +  if (MUL) {
   1.673 +    P0 = IC(4);
   1.674 +  } else {
   1.675 +    P0 = I211(4, 1, 3);
   1.676 +  }
   1.677 +  if (MUR) {
   1.678 +    P1 = I31(4, 2);
   1.679 +  } else {
   1.680 +    P1 = I611(4, 1, 5);
   1.681 +  }
   1.682 +} break;
   1.683 +case 92 : 
   1.684 +{
   1.685 +  P0 = I31(4, 0);
   1.686 +  P1 = I31(4, 1);
   1.687 +  if (MDL) {
   1.688 +    P2 = I31(4, 6);
   1.689 +  } else {
   1.690 +    P2 = I611(4, 3, 7);
   1.691 +  }
   1.692 +  if (MDR) {
   1.693 +    P3 = I31(4, 8);
   1.694 +  } else {
   1.695 +    P3 = I611(4, 5, 7);
   1.696 +  }
   1.697 +} break;
   1.698 +case 93 : 
   1.699 +{
   1.700 +  P0 = I31(4, 1);
   1.701 +  P1 = I31(4, 1);
   1.702 +  if (MDL) {
   1.703 +    P2 = I31(4, 6);
   1.704 +  } else {
   1.705 +    P2 = I611(4, 3, 7);
   1.706 +  }
   1.707 +  if (MDR) {
   1.708 +    P3 = I31(4, 8);
   1.709 +  } else {
   1.710 +    P3 = I611(4, 5, 7);
   1.711 +  }
   1.712 +} break;
   1.713 +case 94 : 
   1.714 +{
   1.715 +  if (MDL) {
   1.716 +    P2 = I31(4, 6);
   1.717 +  } else {
   1.718 +    P2 = I611(4, 3, 7);
   1.719 +  }
   1.720 +  if (MDR) {
   1.721 +    P3 = I31(4, 8);
   1.722 +  } else {
   1.723 +    P3 = I611(4, 5, 7);
   1.724 +  }
   1.725 +  if (MUL) {
   1.726 +    P0 = I31(4, 0);
   1.727 +  } else {
   1.728 +    P0 = I611(4, 1, 3);
   1.729 +  }
   1.730 +  if (MUR) {
   1.731 +    P1 = IC(4);
   1.732 +  } else {
   1.733 +    P1 = I211(4, 1, 5);
   1.734 +  }
   1.735 +} break;
   1.736 +case 96 : 
   1.737 +case 97 : 
   1.738 +case 100 : 
   1.739 +case 101 : 
   1.740 +{
   1.741 +  P0 = I211(4, 1, 3);
   1.742 +  P1 = I211(4, 1, 5);
   1.743 +  P2 = I31(4, 3);
   1.744 +  P3 = I31(4, 8);
   1.745 +} break;
   1.746 +case 98 : 
   1.747 +{
   1.748 +  P0 = I31(4, 0);
   1.749 +  P1 = I31(4, 2);
   1.750 +  P2 = I31(4, 3);
   1.751 +  P3 = I31(4, 8);
   1.752 +} break;
   1.753 +case 99 : 
   1.754 +{
   1.755 +  P0 = I31(4, 3);
   1.756 +  P1 = I31(4, 2);
   1.757 +  P2 = I31(4, 3);
   1.758 +  P3 = I31(4, 8);
   1.759 +} break;
   1.760 +case 102 : 
   1.761 +{
   1.762 +  P0 = I31(4, 0);
   1.763 +  P1 = I31(4, 5);
   1.764 +  P2 = I31(4, 3);
   1.765 +  P3 = I31(4, 8);
   1.766 +} break;
   1.767 +case 103 : 
   1.768 +{
   1.769 +  P0 = I31(4, 3);
   1.770 +  P1 = I31(4, 5);
   1.771 +  P2 = I31(4, 3);
   1.772 +  P3 = I31(4, 8);
   1.773 +} break;
   1.774 +case 104 : 
   1.775 +case 108 : 
   1.776 +{
   1.777 +  P0 = I31(4, 0);
   1.778 +  P1 = I211(4, 1, 5);
   1.779 +  P3 = I31(4, 8);
   1.780 +  if (MDL) {
   1.781 +    P2 = IC(4);
   1.782 +  } else {
   1.783 +    P2 = I211(4, 3, 7);
   1.784 +  }
   1.785 +} break;
   1.786 +case 105 : 
   1.787 +case 109 : 
   1.788 +{
   1.789 +  P1 = I211(4, 1, 5);
   1.790 +  P3 = I31(4, 8);
   1.791 +  if (MDL) {
   1.792 +    P0 = I31(4, 1);
   1.793 +    P2 = IC(4);
   1.794 +  } else {
   1.795 +    P0 = I521(4, 3, 1);
   1.796 +    P2 = I332(3, 7, 4);
   1.797 +  }
   1.798 +} break;
   1.799 +case 106 : 
   1.800 +case 120 : 
   1.801 +{
   1.802 +  P0 = I31(4, 0);
   1.803 +  P1 = I31(4, 2);
   1.804 +  P3 = I31(4, 8);
   1.805 +  if (MDL) {
   1.806 +    P2 = IC(4);
   1.807 +  } else {
   1.808 +    P2 = I211(4, 3, 7);
   1.809 +  }
   1.810 +} break;
   1.811 +case 110 : 
   1.812 +{
   1.813 +  P0 = I31(4, 0);
   1.814 +  P1 = I31(4, 5);
   1.815 +  P3 = I31(4, 8);
   1.816 +  if (MDL) {
   1.817 +    P2 = IC(4);
   1.818 +  } else {
   1.819 +    P2 = I211(4, 3, 7);
   1.820 +  }
   1.821 +} break;
   1.822 +case 111 : 
   1.823 +{
   1.824 +  P1 = I31(4, 5);
   1.825 +  P3 = I31(4, 8);
   1.826 +  if (MDL) {
   1.827 +    P2 = IC(4);
   1.828 +  } else {
   1.829 +    P2 = I211(4, 3, 7);
   1.830 +  }
   1.831 +  if (MUL) {
   1.832 +    P0 = IC(4);
   1.833 +  } else {
   1.834 +    P0 = I1411(4, 1, 3);
   1.835 +  }
   1.836 +} break;
   1.837 +case 112 : 
   1.838 +case 113 : 
   1.839 +{
   1.840 +  P0 = I211(4, 1, 3);
   1.841 +  P1 = I31(4, 2);
   1.842 +  if (MDR) {
   1.843 +    P2 = I31(4, 3);
   1.844 +    P3 = I31(4, 8);
   1.845 +  } else {
   1.846 +    P2 = I521(4, 7, 3);
   1.847 +    P3 = I332(5, 7, 4);
   1.848 +  }
   1.849 +} break;
   1.850 +case 114 : 
   1.851 +{
   1.852 +  P0 = I31(4, 0);
   1.853 +  P2 = I31(4, 3);
   1.854 +  if (MDR) {
   1.855 +    P3 = I31(4, 8);
   1.856 +  } else {
   1.857 +    P3 = I611(4, 5, 7);
   1.858 +  }
   1.859 +  if (MUR) {
   1.860 +    P1 = I31(4, 2);
   1.861 +  } else {
   1.862 +    P1 = I611(4, 1, 5);
   1.863 +  }
   1.864 +} break;
   1.865 +case 115 : 
   1.866 +{
   1.867 +  P0 = I31(4, 3);
   1.868 +  P2 = I31(4, 3);
   1.869 +  if (MDR) {
   1.870 +    P3 = I31(4, 8);
   1.871 +  } else {
   1.872 +    P3 = I611(4, 5, 7);
   1.873 +  }
   1.874 +  if (MUR) {
   1.875 +    P1 = I31(4, 2);
   1.876 +  } else {
   1.877 +    P1 = I611(4, 1, 5);
   1.878 +  }
   1.879 +} break;
   1.880 +case 116 : 
   1.881 +case 117 : 
   1.882 +{
   1.883 +  P0 = I211(4, 1, 3);
   1.884 +  P1 = I31(4, 1);
   1.885 +  P2 = I31(4, 3);
   1.886 +  if (MDR) {
   1.887 +    P3 = I31(4, 8);
   1.888 +  } else {
   1.889 +    P3 = I611(4, 5, 7);
   1.890 +  }
   1.891 +} break;
   1.892 +case 118 : 
   1.893 +{
   1.894 +  P0 = I31(4, 0);
   1.895 +  P2 = I31(4, 3);
   1.896 +  P3 = I31(4, 8);
   1.897 +  if (MUR) {
   1.898 +    P1 = IC(4);
   1.899 +  } else {
   1.900 +    P1 = I211(4, 1, 5);
   1.901 +  }
   1.902 +} break;
   1.903 +case 119 : 
   1.904 +{
   1.905 +  P2 = I31(4, 3);
   1.906 +  P3 = I31(4, 8);
   1.907 +  if (MUR) {
   1.908 +    P0 = I31(4, 3);
   1.909 +    P1 = IC(4);
   1.910 +  } else {
   1.911 +    P0 = I521(4, 1, 3);
   1.912 +    P1 = I332(1, 5, 4);
   1.913 +  }
   1.914 +} break;
   1.915 +case 121 : 
   1.916 +{
   1.917 +  P0 = I31(4, 1);
   1.918 +  P1 = I31(4, 2);
   1.919 +  if (MDL) {
   1.920 +    P2 = IC(4);
   1.921 +  } else {
   1.922 +    P2 = I211(4, 3, 7);
   1.923 +  }
   1.924 +  if (MDR) {
   1.925 +    P3 = I31(4, 8);
   1.926 +  } else {
   1.927 +    P3 = I611(4, 5, 7);
   1.928 +  }
   1.929 +} break;
   1.930 +case 122 : 
   1.931 +{
   1.932 +  if (MDL) {
   1.933 +    P2 = IC(4);
   1.934 +  } else {
   1.935 +    P2 = I211(4, 3, 7);
   1.936 +  }
   1.937 +  if (MDR) {
   1.938 +    P3 = I31(4, 8);
   1.939 +  } else {
   1.940 +    P3 = I611(4, 5, 7);
   1.941 +  }
   1.942 +  if (MUL) {
   1.943 +    P0 = I31(4, 0);
   1.944 +  } else {
   1.945 +    P0 = I611(4, 1, 3);
   1.946 +  }
   1.947 +  if (MUR) {
   1.948 +    P1 = I31(4, 2);
   1.949 +  } else {
   1.950 +    P1 = I611(4, 1, 5);
   1.951 +  }
   1.952 +} break;
   1.953 +case 124 : 
   1.954 +{
   1.955 +  P0 = I31(4, 0);
   1.956 +  P1 = I31(4, 1);
   1.957 +  P3 = I31(4, 8);
   1.958 +  if (MDL) {
   1.959 +    P2 = IC(4);
   1.960 +  } else {
   1.961 +    P2 = I211(4, 3, 7);
   1.962 +  }
   1.963 +} break;
   1.964 +case 125 : 
   1.965 +{
   1.966 +  P1 = I31(4, 1);
   1.967 +  P3 = I31(4, 8);
   1.968 +  if (MDL) {
   1.969 +    P0 = I31(4, 1);
   1.970 +    P2 = IC(4);
   1.971 +  } else {
   1.972 +    P0 = I521(4, 3, 1);
   1.973 +    P2 = I332(3, 7, 4);
   1.974 +  }
   1.975 +} break;
   1.976 +case 126 : 
   1.977 +{
   1.978 +  P0 = I31(4, 0);
   1.979 +  P3 = I31(4, 8);
   1.980 +  if (MDL) {
   1.981 +    P2 = IC(4);
   1.982 +  } else {
   1.983 +    P2 = I211(4, 3, 7);
   1.984 +  }
   1.985 +  if (MUR) {
   1.986 +    P1 = IC(4);
   1.987 +  } else {
   1.988 +    P1 = I211(4, 1, 5);
   1.989 +  }
   1.990 +} break;
   1.991 +case 127 : 
   1.992 +{
   1.993 +  P3 = I31(4, 8);
   1.994 +  if (MDL) {
   1.995 +    P2 = IC(4);
   1.996 +  } else {
   1.997 +    P2 = I211(4, 3, 7);
   1.998 +  }
   1.999 +  if (MUL) {
  1.1000 +    P0 = IC(4);
  1.1001 +  } else {
  1.1002 +    P0 = I1411(4, 1, 3);
  1.1003 +  }
  1.1004 +  if (MUR) {
  1.1005 +    P1 = IC(4);
  1.1006 +  } else {
  1.1007 +    P1 = I211(4, 1, 5);
  1.1008 +  }
  1.1009 +} break;
  1.1010 +case 144 : 
  1.1011 +case 145 : 
  1.1012 +case 176 : 
  1.1013 +case 177 : 
  1.1014 +{
  1.1015 +  P0 = I211(4, 1, 3);
  1.1016 +  P1 = I31(4, 2);
  1.1017 +  P2 = I211(4, 3, 7);
  1.1018 +  P3 = I31(4, 7);
  1.1019 +} break;
  1.1020 +case 146 : 
  1.1021 +case 178 : 
  1.1022 +{
  1.1023 +  P0 = I31(4, 0);
  1.1024 +  P2 = I211(4, 3, 7);
  1.1025 +  if (MUR) {
  1.1026 +    P1 = I31(4, 2);
  1.1027 +    P3 = I31(4, 7);
  1.1028 +  } else {
  1.1029 +    P1 = I332(1, 5, 4);
  1.1030 +    P3 = I521(4, 5, 7);
  1.1031 +  }
  1.1032 +} break;
  1.1033 +case 147 : 
  1.1034 +case 179 : 
  1.1035 +{
  1.1036 +  P0 = I31(4, 3);
  1.1037 +  P2 = I211(4, 3, 7);
  1.1038 +  P3 = I31(4, 7);
  1.1039 +  if (MUR) {
  1.1040 +    P1 = I31(4, 2);
  1.1041 +  } else {
  1.1042 +    P1 = I611(4, 1, 5);
  1.1043 +  }
  1.1044 +} break;
  1.1045 +case 148 : 
  1.1046 +case 149 : 
  1.1047 +case 180 : 
  1.1048 +case 181 : 
  1.1049 +{
  1.1050 +  P0 = I211(4, 1, 3);
  1.1051 +  P1 = I31(4, 1);
  1.1052 +  P2 = I211(4, 3, 7);
  1.1053 +  P3 = I31(4, 7);
  1.1054 +} break;
  1.1055 +case 150 : 
  1.1056 +case 182 : 
  1.1057 +{
  1.1058 +  P0 = I31(4, 0);
  1.1059 +  P2 = I211(4, 3, 7);
  1.1060 +  if (MUR) {
  1.1061 +    P1 = IC(4);
  1.1062 +    P3 = I31(4, 7);
  1.1063 +  } else {
  1.1064 +    P1 = I332(1, 5, 4);
  1.1065 +    P3 = I521(4, 5, 7);
  1.1066 +  }
  1.1067 +} break;
  1.1068 +case 151 : 
  1.1069 +case 183 : 
  1.1070 +{
  1.1071 +  P0 = I31(4, 3);
  1.1072 +  P2 = I211(4, 3, 7);
  1.1073 +  P3 = I31(4, 7);
  1.1074 +  if (MUR) {
  1.1075 +    P1 = IC(4);
  1.1076 +  } else {
  1.1077 +    P1 = I1411(4, 1, 5);
  1.1078 +  }
  1.1079 +} break;
  1.1080 +case 152 : 
  1.1081 +{
  1.1082 +  P0 = I31(4, 0);
  1.1083 +  P1 = I31(4, 2);
  1.1084 +  P2 = I31(4, 6);
  1.1085 +  P3 = I31(4, 7);
  1.1086 +} break;
  1.1087 +case 153 : 
  1.1088 +{
  1.1089 +  P0 = I31(4, 1);
  1.1090 +  P1 = I31(4, 2);
  1.1091 +  P2 = I31(4, 6);
  1.1092 +  P3 = I31(4, 7);
  1.1093 +} break;
  1.1094 +case 154 : 
  1.1095 +{
  1.1096 +  P2 = I31(4, 6);
  1.1097 +  P3 = I31(4, 7);
  1.1098 +  if (MUL) {
  1.1099 +    P0 = I31(4, 0);
  1.1100 +  } else {
  1.1101 +    P0 = I611(4, 1, 3);
  1.1102 +  }
  1.1103 +  if (MUR) {
  1.1104 +    P1 = I31(4, 2);
  1.1105 +  } else {
  1.1106 +    P1 = I611(4, 1, 5);
  1.1107 +  }
  1.1108 +} break;
  1.1109 +case 155 : 
  1.1110 +{
  1.1111 +  P1 = I31(4, 2);
  1.1112 +  P2 = I31(4, 6);
  1.1113 +  P3 = I31(4, 7);
  1.1114 +  if (MUL) {
  1.1115 +    P0 = IC(4);
  1.1116 +  } else {
  1.1117 +    P0 = I211(4, 1, 3);
  1.1118 +  }
  1.1119 +} break;
  1.1120 +case 156 : 
  1.1121 +{
  1.1122 +  P0 = I31(4, 0);
  1.1123 +  P1 = I31(4, 1);
  1.1124 +  P2 = I31(4, 6);
  1.1125 +  P3 = I31(4, 7);
  1.1126 +} break;
  1.1127 +case 157 : 
  1.1128 +{
  1.1129 +  P0 = I31(4, 1);
  1.1130 +  P1 = I31(4, 1);
  1.1131 +  P2 = I31(4, 6);
  1.1132 +  P3 = I31(4, 7);
  1.1133 +} break;
  1.1134 +case 158 : 
  1.1135 +{
  1.1136 +  P2 = I31(4, 6);
  1.1137 +  P3 = I31(4, 7);
  1.1138 +  if (MUL) {
  1.1139 +    P0 = I31(4, 0);
  1.1140 +  } else {
  1.1141 +    P0 = I611(4, 1, 3);
  1.1142 +  }
  1.1143 +  if (MUR) {
  1.1144 +    P1 = IC(4);
  1.1145 +  } else {
  1.1146 +    P1 = I211(4, 1, 5);
  1.1147 +  }
  1.1148 +} break;
  1.1149 +case 159 : 
  1.1150 +{
  1.1151 +  P2 = I31(4, 6);
  1.1152 +  P3 = I31(4, 7);
  1.1153 +  if (MUL) {
  1.1154 +    P0 = IC(4);
  1.1155 +  } else {
  1.1156 +    P0 = I211(4, 1, 3);
  1.1157 +  }
  1.1158 +  if (MUR) {
  1.1159 +    P1 = IC(4);
  1.1160 +  } else {
  1.1161 +    P1 = I1411(4, 1, 5);
  1.1162 +  }
  1.1163 +} break;
  1.1164 +case 184 : 
  1.1165 +{
  1.1166 +  P0 = I31(4, 0);
  1.1167 +  P1 = I31(4, 2);
  1.1168 +  P2 = I31(4, 7);
  1.1169 +  P3 = I31(4, 7);
  1.1170 +} break;
  1.1171 +case 185 : 
  1.1172 +{
  1.1173 +  P0 = I31(4, 1);
  1.1174 +  P1 = I31(4, 2);
  1.1175 +  P2 = I31(4, 7);
  1.1176 +  P3 = I31(4, 7);
  1.1177 +} break;
  1.1178 +case 186 : 
  1.1179 +{
  1.1180 +  P2 = I31(4, 7);
  1.1181 +  P3 = I31(4, 7);
  1.1182 +  if (MUL) {
  1.1183 +    P0 = I31(4, 0);
  1.1184 +  } else {
  1.1185 +    P0 = I611(4, 1, 3);
  1.1186 +  }
  1.1187 +  if (MUR) {
  1.1188 +    P1 = I31(4, 2);
  1.1189 +  } else {
  1.1190 +    P1 = I611(4, 1, 5);
  1.1191 +  }
  1.1192 +} break;
  1.1193 +case 187 : 
  1.1194 +{
  1.1195 +  P1 = I31(4, 2);
  1.1196 +  P3 = I31(4, 7);
  1.1197 +  if (MUL) {
  1.1198 +    P0 = IC(4);
  1.1199 +    P2 = I31(4, 7);
  1.1200 +  } else {
  1.1201 +    P0 = I332(1, 3, 4);
  1.1202 +    P2 = I521(4, 3, 7);
  1.1203 +  }
  1.1204 +} break;
  1.1205 +case 188 : 
  1.1206 +{
  1.1207 +  P0 = I31(4, 0);
  1.1208 +  P1 = I31(4, 1);
  1.1209 +  P2 = I31(4, 7);
  1.1210 +  P3 = I31(4, 7);
  1.1211 +} break;
  1.1212 +case 189 : 
  1.1213 +{
  1.1214 +  P0 = I31(4, 1);
  1.1215 +  P1 = I31(4, 1);
  1.1216 +  P2 = I31(4, 7);
  1.1217 +  P3 = I31(4, 7);
  1.1218 +} break;
  1.1219 +case 190 : 
  1.1220 +{
  1.1221 +  P0 = I31(4, 0);
  1.1222 +  P2 = I31(4, 7);
  1.1223 +  if (MUR) {
  1.1224 +    P1 = IC(4);
  1.1225 +    P3 = I31(4, 7);
  1.1226 +  } else {
  1.1227 +    P1 = I332(1, 5, 4);
  1.1228 +    P3 = I521(4, 5, 7);
  1.1229 +  }
  1.1230 +} break;
  1.1231 +case 191 : 
  1.1232 +{
  1.1233 +  P2 = I31(4, 7);
  1.1234 +  P3 = I31(4, 7);
  1.1235 +  if (MUL) {
  1.1236 +    P0 = IC(4);
  1.1237 +  } else {
  1.1238 +    P0 = I1411(4, 1, 3);
  1.1239 +  }
  1.1240 +  if (MUR) {
  1.1241 +    P1 = IC(4);
  1.1242 +  } else {
  1.1243 +    P1 = I1411(4, 1, 5);
  1.1244 +  }
  1.1245 +} break;
  1.1246 +case 192 : 
  1.1247 +case 193 : 
  1.1248 +case 196 : 
  1.1249 +case 197 : 
  1.1250 +{
  1.1251 +  P0 = I211(4, 1, 3);
  1.1252 +  P1 = I211(4, 1, 5);
  1.1253 +  P2 = I31(4, 6);
  1.1254 +  P3 = I31(4, 5);
  1.1255 +} break;
  1.1256 +case 194 : 
  1.1257 +{
  1.1258 +  P0 = I31(4, 0);
  1.1259 +  P1 = I31(4, 2);
  1.1260 +  P2 = I31(4, 6);
  1.1261 +  P3 = I31(4, 5);
  1.1262 +} break;
  1.1263 +case 195 : 
  1.1264 +{
  1.1265 +  P0 = I31(4, 3);
  1.1266 +  P1 = I31(4, 2);
  1.1267 +  P2 = I31(4, 6);
  1.1268 +  P3 = I31(4, 5);
  1.1269 +} break;
  1.1270 +case 198 : 
  1.1271 +{
  1.1272 +  P0 = I31(4, 0);
  1.1273 +  P1 = I31(4, 5);
  1.1274 +  P2 = I31(4, 6);
  1.1275 +  P3 = I31(4, 5);
  1.1276 +} break;
  1.1277 +case 199 : 
  1.1278 +{
  1.1279 +  P0 = I31(4, 3);
  1.1280 +  P1 = I31(4, 5);
  1.1281 +  P2 = I31(4, 6);
  1.1282 +  P3 = I31(4, 5);
  1.1283 +} break;
  1.1284 +case 200 : 
  1.1285 +case 204 : 
  1.1286 +{
  1.1287 +  P0 = I31(4, 0);
  1.1288 +  P1 = I211(4, 1, 5);
  1.1289 +  if (MDL) {
  1.1290 +    P2 = I31(4, 6);
  1.1291 +    P3 = I31(4, 5);
  1.1292 +  } else {
  1.1293 +    P2 = I332(3, 7, 4);
  1.1294 +    P3 = I521(4, 7, 5);
  1.1295 +  }
  1.1296 +} break;
  1.1297 +case 201 : 
  1.1298 +case 205 : 
  1.1299 +{
  1.1300 +  P0 = I31(4, 1);
  1.1301 +  P1 = I211(4, 1, 5);
  1.1302 +  P3 = I31(4, 5);
  1.1303 +  if (MDL) {
  1.1304 +    P2 = I31(4, 6);
  1.1305 +  } else {
  1.1306 +    P2 = I611(4, 3, 7);
  1.1307 +  }
  1.1308 +} break;
  1.1309 +case 202 : 
  1.1310 +{
  1.1311 +  P1 = I31(4, 2);
  1.1312 +  P3 = I31(4, 5);
  1.1313 +  if (MDL) {
  1.1314 +    P2 = I31(4, 6);
  1.1315 +  } else {
  1.1316 +    P2 = I611(4, 3, 7);
  1.1317 +  }
  1.1318 +  if (MUL) {
  1.1319 +    P0 = I31(4, 0);
  1.1320 +  } else {
  1.1321 +    P0 = I611(4, 1, 3);
  1.1322 +  }
  1.1323 +} break;
  1.1324 +case 203 : 
  1.1325 +{
  1.1326 +  P1 = I31(4, 2);
  1.1327 +  P2 = I31(4, 6);
  1.1328 +  P3 = I31(4, 5);
  1.1329 +  if (MUL) {
  1.1330 +    P0 = IC(4);
  1.1331 +  } else {
  1.1332 +    P0 = I211(4, 1, 3);
  1.1333 +  }
  1.1334 +} break;
  1.1335 +case 206 : 
  1.1336 +{
  1.1337 +  P1 = I31(4, 5);
  1.1338 +  P3 = I31(4, 5);
  1.1339 +  if (MDL) {
  1.1340 +    P2 = I31(4, 6);
  1.1341 +  } else {
  1.1342 +    P2 = I611(4, 3, 7);
  1.1343 +  }
  1.1344 +  if (MUL) {
  1.1345 +    P0 = I31(4, 0);
  1.1346 +  } else {
  1.1347 +    P0 = I611(4, 1, 3);
  1.1348 +  }
  1.1349 +} break;
  1.1350 +case 207 : 
  1.1351 +{
  1.1352 +  P2 = I31(4, 6);
  1.1353 +  P3 = I31(4, 5);
  1.1354 +  if (MUL) {
  1.1355 +    P0 = IC(4);
  1.1356 +    P1 = I31(4, 5);
  1.1357 +  } else {
  1.1358 +    P0 = I332(1, 3, 4);
  1.1359 +    P1 = I521(4, 1, 5);
  1.1360 +  }
  1.1361 +} break;
  1.1362 +case 208 : 
  1.1363 +case 209 : 
  1.1364 +{
  1.1365 +  P0 = I211(4, 1, 3);
  1.1366 +  P1 = I31(4, 2);
  1.1367 +  P2 = I31(4, 6);
  1.1368 +  if (MDR) {
  1.1369 +    P3 = IC(4);
  1.1370 +  } else {
  1.1371 +    P3 = I211(4, 5, 7);
  1.1372 +  }
  1.1373 +} break;
  1.1374 +case 210 : 
  1.1375 +case 216 : 
  1.1376 +{
  1.1377 +  P0 = I31(4, 0);
  1.1378 +  P1 = I31(4, 2);
  1.1379 +  P2 = I31(4, 6);
  1.1380 +  if (MDR) {
  1.1381 +    P3 = IC(4);
  1.1382 +  } else {
  1.1383 +    P3 = I211(4, 5, 7);
  1.1384 +  }
  1.1385 +} break;
  1.1386 +case 211 : 
  1.1387 +{
  1.1388 +  P0 = I31(4, 3);
  1.1389 +  P1 = I31(4, 2);
  1.1390 +  P2 = I31(4, 6);
  1.1391 +  if (MDR) {
  1.1392 +    P3 = IC(4);
  1.1393 +  } else {
  1.1394 +    P3 = I211(4, 5, 7);
  1.1395 +  }
  1.1396 +} break;
  1.1397 +case 212 : 
  1.1398 +case 213 : 
  1.1399 +{
  1.1400 +  P0 = I211(4, 1, 3);
  1.1401 +  P2 = I31(4, 6);
  1.1402 +  if (MDR) {
  1.1403 +    P1 = I31(4, 1);
  1.1404 +    P3 = IC(4);
  1.1405 +  } else {
  1.1406 +    P1 = I521(4, 5, 1);
  1.1407 +    P3 = I332(5, 7, 4);
  1.1408 +  }
  1.1409 +} break;
  1.1410 +case 215 : 
  1.1411 +{
  1.1412 +  P0 = I31(4, 3);
  1.1413 +  P2 = I31(4, 6);
  1.1414 +  if (MDR) {
  1.1415 +    P3 = IC(4);
  1.1416 +  } else {
  1.1417 +    P3 = I211(4, 5, 7);
  1.1418 +  }
  1.1419 +  if (MUR) {
  1.1420 +    P1 = IC(4);
  1.1421 +  } else {
  1.1422 +    P1 = I1411(4, 1, 5);
  1.1423 +  }
  1.1424 +} break;
  1.1425 +case 217 : 
  1.1426 +{
  1.1427 +  P0 = I31(4, 1);
  1.1428 +  P1 = I31(4, 2);
  1.1429 +  P2 = I31(4, 6);
  1.1430 +  if (MDR) {
  1.1431 +    P3 = IC(4);
  1.1432 +  } else {
  1.1433 +    P3 = I211(4, 5, 7);
  1.1434 +  }
  1.1435 +} break;
  1.1436 +case 218 : 
  1.1437 +{
  1.1438 +  if (MDL) {
  1.1439 +    P2 = I31(4, 6);
  1.1440 +  } else {
  1.1441 +    P2 = I611(4, 3, 7);
  1.1442 +  }
  1.1443 +  if (MDR) {
  1.1444 +    P3 = IC(4);
  1.1445 +  } else {
  1.1446 +    P3 = I211(4, 5, 7);
  1.1447 +  }
  1.1448 +  if (MUL) {
  1.1449 +    P0 = I31(4, 0);
  1.1450 +  } else {
  1.1451 +    P0 = I611(4, 1, 3);
  1.1452 +  }
  1.1453 +  if (MUR) {
  1.1454 +    P1 = I31(4, 2);
  1.1455 +  } else {
  1.1456 +    P1 = I611(4, 1, 5);
  1.1457 +  }
  1.1458 +} break;
  1.1459 +case 219 : 
  1.1460 +{
  1.1461 +  P1 = I31(4, 2);
  1.1462 +  P2 = I31(4, 6);
  1.1463 +  if (MDR) {
  1.1464 +    P3 = IC(4);
  1.1465 +  } else {
  1.1466 +    P3 = I211(4, 5, 7);
  1.1467 +  }
  1.1468 +  if (MUL) {
  1.1469 +    P0 = IC(4);
  1.1470 +  } else {
  1.1471 +    P0 = I211(4, 1, 3);
  1.1472 +  }
  1.1473 +} break;
  1.1474 +case 220 : 
  1.1475 +{
  1.1476 +  P0 = I31(4, 0);
  1.1477 +  P1 = I31(4, 1);
  1.1478 +  if (MDL) {
  1.1479 +    P2 = I31(4, 6);
  1.1480 +  } else {
  1.1481 +    P2 = I611(4, 3, 7);
  1.1482 +  }
  1.1483 +  if (MDR) {
  1.1484 +    P3 = IC(4);
  1.1485 +  } else {
  1.1486 +    P3 = I211(4, 5, 7);
  1.1487 +  }
  1.1488 +} break;
  1.1489 +case 221 : 
  1.1490 +{
  1.1491 +  P0 = I31(4, 1);
  1.1492 +  P2 = I31(4, 6);
  1.1493 +  if (MDR) {
  1.1494 +    P1 = I31(4, 1);
  1.1495 +    P3 = IC(4);
  1.1496 +  } else {
  1.1497 +    P1 = I521(4, 5, 1);
  1.1498 +    P3 = I332(5, 7, 4);
  1.1499 +  }
  1.1500 +} break;
  1.1501 +case 223 : 
  1.1502 +{
  1.1503 +  P2 = I31(4, 6);
  1.1504 +  if (MDR) {
  1.1505 +    P3 = IC(4);
  1.1506 +  } else {
  1.1507 +    P3 = I211(4, 5, 7);
  1.1508 +  }
  1.1509 +  if (MUL) {
  1.1510 +    P0 = IC(4);
  1.1511 +  } else {
  1.1512 +    P0 = I211(4, 1, 3);
  1.1513 +  }
  1.1514 +  if (MUR) {
  1.1515 +    P1 = IC(4);
  1.1516 +  } else {
  1.1517 +    P1 = I1411(4, 1, 5);
  1.1518 +  }
  1.1519 +} break;
  1.1520 +case 224 : 
  1.1521 +case 225 : 
  1.1522 +case 228 : 
  1.1523 +case 229 : 
  1.1524 +{
  1.1525 +  P0 = I211(4, 1, 3);
  1.1526 +  P1 = I211(4, 1, 5);
  1.1527 +  P2 = I31(4, 3);
  1.1528 +  P3 = I31(4, 5);
  1.1529 +} break;
  1.1530 +case 226 : 
  1.1531 +{
  1.1532 +  P0 = I31(4, 0);
  1.1533 +  P1 = I31(4, 2);
  1.1534 +  P2 = I31(4, 3);
  1.1535 +  P3 = I31(4, 5);
  1.1536 +} break;
  1.1537 +case 227 : 
  1.1538 +{
  1.1539 +  P0 = I31(4, 3);
  1.1540 +  P1 = I31(4, 2);
  1.1541 +  P2 = I31(4, 3);
  1.1542 +  P3 = I31(4, 5);
  1.1543 +} break;
  1.1544 +case 230 : 
  1.1545 +{
  1.1546 +  P0 = I31(4, 0);
  1.1547 +  P1 = I31(4, 5);
  1.1548 +  P2 = I31(4, 3);
  1.1549 +  P3 = I31(4, 5);
  1.1550 +} break;
  1.1551 +case 231 : 
  1.1552 +{
  1.1553 +  P0 = I31(4, 3);
  1.1554 +  P1 = I31(4, 5);
  1.1555 +  P2 = I31(4, 3);
  1.1556 +  P3 = I31(4, 5);
  1.1557 +} break;
  1.1558 +case 232 : 
  1.1559 +case 236 : 
  1.1560 +{
  1.1561 +  P0 = I31(4, 0);
  1.1562 +  P1 = I211(4, 1, 5);
  1.1563 +  if (MDL) {
  1.1564 +    P2 = IC(4);
  1.1565 +    P3 = I31(4, 5);
  1.1566 +  } else {
  1.1567 +    P2 = I332(3, 7, 4);
  1.1568 +    P3 = I521(4, 7, 5);
  1.1569 +  }
  1.1570 +} break;
  1.1571 +case 233 : 
  1.1572 +case 237 : 
  1.1573 +{
  1.1574 +  P0 = I31(4, 1);
  1.1575 +  P1 = I211(4, 1, 5);
  1.1576 +  P3 = I31(4, 5);
  1.1577 +  if (MDL) {
  1.1578 +    P2 = IC(4);
  1.1579 +  } else {
  1.1580 +    P2 = I1411(4, 3, 7);
  1.1581 +  }
  1.1582 +} break;
  1.1583 +case 234 : 
  1.1584 +{
  1.1585 +  P1 = I31(4, 2);
  1.1586 +  P3 = I31(4, 5);
  1.1587 +  if (MDL) {
  1.1588 +    P2 = IC(4);
  1.1589 +  } else {
  1.1590 +    P2 = I211(4, 3, 7);
  1.1591 +  }
  1.1592 +  if (MUL) {
  1.1593 +    P0 = I31(4, 0);
  1.1594 +  } else {
  1.1595 +    P0 = I611(4, 1, 3);
  1.1596 +  }
  1.1597 +} break;
  1.1598 +case 235 : 
  1.1599 +{
  1.1600 +  P1 = I31(4, 2);
  1.1601 +  P3 = I31(4, 5);
  1.1602 +  if (MDL) {
  1.1603 +    P2 = IC(4);
  1.1604 +  } else {
  1.1605 +    P2 = I1411(4, 3, 7);
  1.1606 +  }
  1.1607 +  if (MUL) {
  1.1608 +    P0 = IC(4);
  1.1609 +  } else {
  1.1610 +    P0 = I211(4, 1, 3);
  1.1611 +  }
  1.1612 +} break;
  1.1613 +case 238 : 
  1.1614 +{
  1.1615 +  P0 = I31(4, 0);
  1.1616 +  P1 = I31(4, 5);
  1.1617 +  if (MDL) {
  1.1618 +    P2 = IC(4);
  1.1619 +    P3 = I31(4, 5);
  1.1620 +  } else {
  1.1621 +    P2 = I332(3, 7, 4);
  1.1622 +    P3 = I521(4, 7, 5);
  1.1623 +  }
  1.1624 +} break;
  1.1625 +case 239 : 
  1.1626 +{
  1.1627 +  P1 = I31(4, 5);
  1.1628 +  P3 = I31(4, 5);
  1.1629 +  if (MDL) {
  1.1630 +    P2 = IC(4);
  1.1631 +  } else {
  1.1632 +    P2 = I1411(4, 3, 7);
  1.1633 +  }
  1.1634 +  if (MUL) {
  1.1635 +    P0 = IC(4);
  1.1636 +  } else {
  1.1637 +    P0 = I1411(4, 1, 3);
  1.1638 +  }
  1.1639 +} break;
  1.1640 +case 240 : 
  1.1641 +case 241 : 
  1.1642 +{
  1.1643 +  P0 = I211(4, 1, 3);
  1.1644 +  P1 = I31(4, 2);
  1.1645 +  if (MDR) {
  1.1646 +    P2 = I31(4, 3);
  1.1647 +    P3 = IC(4);
  1.1648 +  } else {
  1.1649 +    P2 = I521(4, 7, 3);
  1.1650 +    P3 = I332(5, 7, 4);
  1.1651 +  }
  1.1652 +} break;
  1.1653 +case 242 : 
  1.1654 +{
  1.1655 +  P0 = I31(4, 0);
  1.1656 +  P2 = I31(4, 3);
  1.1657 +  if (MDR) {
  1.1658 +    P3 = IC(4);
  1.1659 +  } else {
  1.1660 +    P3 = I211(4, 5, 7);
  1.1661 +  }
  1.1662 +  if (MUR) {
  1.1663 +    P1 = I31(4, 2);
  1.1664 +  } else {
  1.1665 +    P1 = I611(4, 1, 5);
  1.1666 +  }
  1.1667 +} break;
  1.1668 +case 243 : 
  1.1669 +{
  1.1670 +  P0 = I31(4, 3);
  1.1671 +  P1 = I31(4, 2);
  1.1672 +  if (MDR) {
  1.1673 +    P2 = I31(4, 3);
  1.1674 +    P3 = IC(4);
  1.1675 +  } else {
  1.1676 +    P2 = I521(4, 7, 3);
  1.1677 +    P3 = I332(5, 7, 4);
  1.1678 +  }
  1.1679 +} break;
  1.1680 +case 244 : 
  1.1681 +case 245 : 
  1.1682 +{
  1.1683 +  P0 = I211(4, 1, 3);
  1.1684 +  P1 = I31(4, 1);
  1.1685 +  P2 = I31(4, 3);
  1.1686 +  if (MDR) {
  1.1687 +    P3 = IC(4);
  1.1688 +  } else {
  1.1689 +    P3 = I1411(4, 5, 7);
  1.1690 +  }
  1.1691 +} break;
  1.1692 +case 246 : 
  1.1693 +{
  1.1694 +  P0 = I31(4, 0);
  1.1695 +  P2 = I31(4, 3);
  1.1696 +  if (MDR) {
  1.1697 +    P3 = IC(4);
  1.1698 +  } else {
  1.1699 +    P3 = I1411(4, 5, 7);
  1.1700 +  }
  1.1701 +  if (MUR) {
  1.1702 +    P1 = IC(4);
  1.1703 +  } else {
  1.1704 +    P1 = I211(4, 1, 5);
  1.1705 +  }
  1.1706 +} break;
  1.1707 +case 247 : 
  1.1708 +{
  1.1709 +  P0 = I31(4, 3);
  1.1710 +  P2 = I31(4, 3);
  1.1711 +  if (MDR) {
  1.1712 +    P3 = IC(4);
  1.1713 +  } else {
  1.1714 +    P3 = I1411(4, 5, 7);
  1.1715 +  }
  1.1716 +  if (MUR) {
  1.1717 +    P1 = IC(4);
  1.1718 +  } else {
  1.1719 +    P1 = I1411(4, 1, 5);
  1.1720 +  }
  1.1721 +} break;
  1.1722 +case 249 : 
  1.1723 +{
  1.1724 +  P0 = I31(4, 1);
  1.1725 +  P1 = I31(4, 2);
  1.1726 +  if (MDL) {
  1.1727 +    P2 = IC(4);
  1.1728 +  } else {
  1.1729 +    P2 = I1411(4, 3, 7);
  1.1730 +  }
  1.1731 +  if (MDR) {
  1.1732 +    P3 = IC(4);
  1.1733 +  } else {
  1.1734 +    P3 = I211(4, 5, 7);
  1.1735 +  }
  1.1736 +} break;
  1.1737 +case 251 : 
  1.1738 +{
  1.1739 +  P1 = I31(4, 2);
  1.1740 +  if (MDL) {
  1.1741 +    P2 = IC(4);
  1.1742 +  } else {
  1.1743 +    P2 = I1411(4, 3, 7);
  1.1744 +  }
  1.1745 +  if (MDR) {
  1.1746 +    P3 = IC(4);
  1.1747 +  } else {
  1.1748 +    P3 = I211(4, 5, 7);
  1.1749 +  }
  1.1750 +  if (MUL) {
  1.1751 +    P0 = IC(4);
  1.1752 +  } else {
  1.1753 +    P0 = I211(4, 1, 3);
  1.1754 +  }
  1.1755 +} break;
  1.1756 +case 252 : 
  1.1757 +{
  1.1758 +  P0 = I31(4, 0);
  1.1759 +  P1 = I31(4, 1);
  1.1760 +  if (MDL) {
  1.1761 +    P2 = IC(4);
  1.1762 +  } else {
  1.1763 +    P2 = I211(4, 3, 7);
  1.1764 +  }
  1.1765 +  if (MDR) {
  1.1766 +    P3 = IC(4);
  1.1767 +  } else {
  1.1768 +    P3 = I1411(4, 5, 7);
  1.1769 +  }
  1.1770 +} break;
  1.1771 +case 253 : 
  1.1772 +{
  1.1773 +  P0 = I31(4, 1);
  1.1774 +  P1 = I31(4, 1);
  1.1775 +  if (MDL) {
  1.1776 +    P2 = IC(4);
  1.1777 +  } else {
  1.1778 +    P2 = I1411(4, 3, 7);
  1.1779 +  }
  1.1780 +  if (MDR) {
  1.1781 +    P3 = IC(4);
  1.1782 +  } else {
  1.1783 +    P3 = I1411(4, 5, 7);
  1.1784 +  }
  1.1785 +} break;
  1.1786 +case 254 : 
  1.1787 +{
  1.1788 +  P0 = I31(4, 0);
  1.1789 +  if (MDL) {
  1.1790 +    P2 = IC(4);
  1.1791 +  } else {
  1.1792 +    P2 = I211(4, 3, 7);
  1.1793 +  }
  1.1794 +  if (MDR) {
  1.1795 +    P3 = IC(4);
  1.1796 +  } else {
  1.1797 +    P3 = I1411(4, 5, 7);
  1.1798 +  }
  1.1799 +  if (MUR) {
  1.1800 +    P1 = IC(4);
  1.1801 +  } else {
  1.1802 +    P1 = I211(4, 1, 5);
  1.1803 +  }
  1.1804 +} break;
  1.1805 +case 255 : 
  1.1806 +{
  1.1807 +  if (MDL) {
  1.1808 +    P2 = IC(4);
  1.1809 +  } else {
  1.1810 +    P2 = I1411(4, 3, 7);
  1.1811 +  }
  1.1812 +  if (MDR) {
  1.1813 +    P3 = IC(4);
  1.1814 +  } else {
  1.1815 +    P3 = I1411(4, 5, 7);
  1.1816 +  }
  1.1817 +  if (MUL) {
  1.1818 +    P0 = IC(4);
  1.1819 +  } else {
  1.1820 +    P0 = I1411(4, 1, 3);
  1.1821 +  }
  1.1822 +  if (MUR) {
  1.1823 +    P1 = IC(4);
  1.1824 +  } else {
  1.1825 +    P1 = I1411(4, 1, 5);
  1.1826 +  }
  1.1827 +} break;