1 /* 2 * Copyright (C) 2011-2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /* 18 * This file is auto-generated. DO NOT MODIFY! 19 * The source Renderscript file: reduce_general_accumulator.rs 20 */ 21 22 package accumulator; 23 24 import android.os.Build; 25 import android.os.Process; 26 import java.lang.reflect.Field; 27 import android.renderscript.*; 28 import accumulator.reduce_general_accumulatorBitCode; 29 30 /** 31 * @hide 32 */ 33 public class ScriptC_reduce_general_accumulator extends ScriptC { 34 private static final String __rs_resource_name = "reduce_general_accumulator"; 35 // Constructor 36 public ScriptC_reduce_general_accumulator(RenderScript rs) { 37 super(rs, 38 __rs_resource_name, 39 reduce_general_accumulatorBitCode.getBitCode32(), 40 reduce_general_accumulatorBitCode.getBitCode64()); 41 mRSLocal = rs; 42 __I32 = Element.I32(rs); 43 } 44 45 private Element __I32; 46 private RenderScript mRSLocal; 47 // To obtain the result, invoke get(), which blocks 48 // until the asynchronously-launched operation has completed. 49 public static class result_int { 50 public int get() { 51 if (!mGotResult) { 52 int[] outArray = new int[1]; 53 mOut.copyTo(outArray); 54 mResult = outArray[0]; 55 mOut.destroy(); 56 mOut = null; // make Java object eligible for garbage collection 57 if (mTempIns != null) { 58 for (Allocation tempIn : mTempIns) { 59 tempIn.destroy(); 60 } 61 62 mTempIns = null; // make Java objects eligible for garbage collection 63 } 64 65 mGotResult = true; 66 } 67 68 return mResult; 69 } 70 71 private result_int(Allocation out) { 72 mTempIns = null; 73 mOut = out; 74 mGotResult = false; 75 } 76 77 private Allocation[] mTempIns; 78 private Allocation mOut; 79 private boolean mGotResult; 80 private int mResult; 81 } 82 83 private final static int mExportReduceIdx_my_half = 0; 84 // in1 = "val" 85 public result_int reduce_my_half(int[] in1) { 86 // Verify that "in1" is non-null. 87 if (in1 == null) { 88 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 89 } 90 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 91 ain1.setAutoPadding(true); 92 ain1.copyFrom(in1); 93 94 result_int result = reduce_my_half(ain1, null); 95 result.mTempIns = new Allocation[]{ain1}; 96 return result; 97 } 98 99 // ain1 = "int val" 100 public result_int reduce_my_half(Allocation ain1) { 101 return reduce_my_half(ain1, null); 102 } 103 104 // ain1 = "int val" 105 public result_int reduce_my_half(Allocation ain1, Script.LaunchOptions sc) { 106 // check ain1 107 if (!ain1.getType().getElement().isCompatible(__I32)) { 108 throw new RSRuntimeException("Type mismatch with I32!"); 109 } 110 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 111 aout.setAutoPadding(true); 112 reduce(mExportReduceIdx_my_half, new Allocation[]{ain1}, aout, sc); 113 return new result_int(aout); 114 } 115 116 private final static int mExportReduceIdx_my_half2 = 1; 117 // in1 = "val" 118 public result_int reduce_my_half2(int[] in1) { 119 // Verify that "in1" is non-null. 120 if (in1 == null) { 121 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 122 } 123 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 124 ain1.setAutoPadding(true); 125 ain1.copyFrom(in1); 126 127 result_int result = reduce_my_half2(ain1, null); 128 result.mTempIns = new Allocation[]{ain1}; 129 return result; 130 } 131 132 // ain1 = "int val" 133 public result_int reduce_my_half2(Allocation ain1) { 134 return reduce_my_half2(ain1, null); 135 } 136 137 // ain1 = "int val" 138 public result_int reduce_my_half2(Allocation ain1, Script.LaunchOptions sc) { 139 // check ain1 140 if (!ain1.getType().getElement().isCompatible(__I32)) { 141 throw new RSRuntimeException("Type mismatch with I32!"); 142 } 143 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 144 aout.setAutoPadding(true); 145 reduce(mExportReduceIdx_my_half2, new Allocation[]{ain1}, aout, sc); 146 return new result_int(aout); 147 } 148 149 private final static int mExportReduceIdx_my_half4 = 2; 150 // in1 = "val" 151 public result_int reduce_my_half4(int[] in1) { 152 // Verify that "in1" is non-null. 153 if (in1 == null) { 154 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 155 } 156 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 157 ain1.setAutoPadding(true); 158 ain1.copyFrom(in1); 159 160 result_int result = reduce_my_half4(ain1, null); 161 result.mTempIns = new Allocation[]{ain1}; 162 return result; 163 } 164 165 // ain1 = "int val" 166 public result_int reduce_my_half4(Allocation ain1) { 167 return reduce_my_half4(ain1, null); 168 } 169 170 // ain1 = "int val" 171 public result_int reduce_my_half4(Allocation ain1, Script.LaunchOptions sc) { 172 // check ain1 173 if (!ain1.getType().getElement().isCompatible(__I32)) { 174 throw new RSRuntimeException("Type mismatch with I32!"); 175 } 176 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 177 aout.setAutoPadding(true); 178 reduce(mExportReduceIdx_my_half4, new Allocation[]{ain1}, aout, sc); 179 return new result_int(aout); 180 } 181 182 private final static int mExportReduceIdx_my_array_half = 3; 183 // in1 = "val" 184 public result_int reduce_my_array_half(int[] in1) { 185 // Verify that "in1" is non-null. 186 if (in1 == null) { 187 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 188 } 189 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 190 ain1.setAutoPadding(true); 191 ain1.copyFrom(in1); 192 193 result_int result = reduce_my_array_half(ain1, null); 194 result.mTempIns = new Allocation[]{ain1}; 195 return result; 196 } 197 198 // ain1 = "int val" 199 public result_int reduce_my_array_half(Allocation ain1) { 200 return reduce_my_array_half(ain1, null); 201 } 202 203 // ain1 = "int val" 204 public result_int reduce_my_array_half(Allocation ain1, Script.LaunchOptions sc) { 205 // check ain1 206 if (!ain1.getType().getElement().isCompatible(__I32)) { 207 throw new RSRuntimeException("Type mismatch with I32!"); 208 } 209 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 210 aout.setAutoPadding(true); 211 reduce(mExportReduceIdx_my_array_half, new Allocation[]{ain1}, aout, sc); 212 return new result_int(aout); 213 } 214 215 private final static int mExportReduceIdx_my_array_half2 = 4; 216 // in1 = "val" 217 public result_int reduce_my_array_half2(int[] in1) { 218 // Verify that "in1" is non-null. 219 if (in1 == null) { 220 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 221 } 222 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 223 ain1.setAutoPadding(true); 224 ain1.copyFrom(in1); 225 226 result_int result = reduce_my_array_half2(ain1, null); 227 result.mTempIns = new Allocation[]{ain1}; 228 return result; 229 } 230 231 // ain1 = "int val" 232 public result_int reduce_my_array_half2(Allocation ain1) { 233 return reduce_my_array_half2(ain1, null); 234 } 235 236 // ain1 = "int val" 237 public result_int reduce_my_array_half2(Allocation ain1, Script.LaunchOptions sc) { 238 // check ain1 239 if (!ain1.getType().getElement().isCompatible(__I32)) { 240 throw new RSRuntimeException("Type mismatch with I32!"); 241 } 242 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 243 aout.setAutoPadding(true); 244 reduce(mExportReduceIdx_my_array_half2, new Allocation[]{ain1}, aout, sc); 245 return new result_int(aout); 246 } 247 248 private final static int mExportReduceIdx_my_array_half4 = 5; 249 // in1 = "val" 250 public result_int reduce_my_array_half4(int[] in1) { 251 // Verify that "in1" is non-null. 252 if (in1 == null) { 253 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 254 } 255 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 256 ain1.setAutoPadding(true); 257 ain1.copyFrom(in1); 258 259 result_int result = reduce_my_array_half4(ain1, null); 260 result.mTempIns = new Allocation[]{ain1}; 261 return result; 262 } 263 264 // ain1 = "int val" 265 public result_int reduce_my_array_half4(Allocation ain1) { 266 return reduce_my_array_half4(ain1, null); 267 } 268 269 // ain1 = "int val" 270 public result_int reduce_my_array_half4(Allocation ain1, Script.LaunchOptions sc) { 271 // check ain1 272 if (!ain1.getType().getElement().isCompatible(__I32)) { 273 throw new RSRuntimeException("Type mismatch with I32!"); 274 } 275 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 276 aout.setAutoPadding(true); 277 reduce(mExportReduceIdx_my_array_half4, new Allocation[]{ain1}, aout, sc); 278 return new result_int(aout); 279 } 280 281 private final static int mExportReduceIdx_my_float = 6; 282 // in1 = "val" 283 public result_int reduce_my_float(int[] in1) { 284 // Verify that "in1" is non-null. 285 if (in1 == null) { 286 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 287 } 288 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 289 ain1.setAutoPadding(true); 290 ain1.copyFrom(in1); 291 292 result_int result = reduce_my_float(ain1, null); 293 result.mTempIns = new Allocation[]{ain1}; 294 return result; 295 } 296 297 // ain1 = "int val" 298 public result_int reduce_my_float(Allocation ain1) { 299 return reduce_my_float(ain1, null); 300 } 301 302 // ain1 = "int val" 303 public result_int reduce_my_float(Allocation ain1, Script.LaunchOptions sc) { 304 // check ain1 305 if (!ain1.getType().getElement().isCompatible(__I32)) { 306 throw new RSRuntimeException("Type mismatch with I32!"); 307 } 308 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 309 aout.setAutoPadding(true); 310 reduce(mExportReduceIdx_my_float, new Allocation[]{ain1}, aout, sc); 311 return new result_int(aout); 312 } 313 314 private final static int mExportReduceIdx_my_float2 = 7; 315 // in1 = "val" 316 public result_int reduce_my_float2(int[] in1) { 317 // Verify that "in1" is non-null. 318 if (in1 == null) { 319 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 320 } 321 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 322 ain1.setAutoPadding(true); 323 ain1.copyFrom(in1); 324 325 result_int result = reduce_my_float2(ain1, null); 326 result.mTempIns = new Allocation[]{ain1}; 327 return result; 328 } 329 330 // ain1 = "int val" 331 public result_int reduce_my_float2(Allocation ain1) { 332 return reduce_my_float2(ain1, null); 333 } 334 335 // ain1 = "int val" 336 public result_int reduce_my_float2(Allocation ain1, Script.LaunchOptions sc) { 337 // check ain1 338 if (!ain1.getType().getElement().isCompatible(__I32)) { 339 throw new RSRuntimeException("Type mismatch with I32!"); 340 } 341 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 342 aout.setAutoPadding(true); 343 reduce(mExportReduceIdx_my_float2, new Allocation[]{ain1}, aout, sc); 344 return new result_int(aout); 345 } 346 347 private final static int mExportReduceIdx_my_float4 = 8; 348 // in1 = "val" 349 public result_int reduce_my_float4(int[] in1) { 350 // Verify that "in1" is non-null. 351 if (in1 == null) { 352 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 353 } 354 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 355 ain1.setAutoPadding(true); 356 ain1.copyFrom(in1); 357 358 result_int result = reduce_my_float4(ain1, null); 359 result.mTempIns = new Allocation[]{ain1}; 360 return result; 361 } 362 363 // ain1 = "int val" 364 public result_int reduce_my_float4(Allocation ain1) { 365 return reduce_my_float4(ain1, null); 366 } 367 368 // ain1 = "int val" 369 public result_int reduce_my_float4(Allocation ain1, Script.LaunchOptions sc) { 370 // check ain1 371 if (!ain1.getType().getElement().isCompatible(__I32)) { 372 throw new RSRuntimeException("Type mismatch with I32!"); 373 } 374 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 375 aout.setAutoPadding(true); 376 reduce(mExportReduceIdx_my_float4, new Allocation[]{ain1}, aout, sc); 377 return new result_int(aout); 378 } 379 380 private final static int mExportReduceIdx_my_array_float = 9; 381 // in1 = "val" 382 public result_int reduce_my_array_float(int[] in1) { 383 // Verify that "in1" is non-null. 384 if (in1 == null) { 385 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 386 } 387 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 388 ain1.setAutoPadding(true); 389 ain1.copyFrom(in1); 390 391 result_int result = reduce_my_array_float(ain1, null); 392 result.mTempIns = new Allocation[]{ain1}; 393 return result; 394 } 395 396 // ain1 = "int val" 397 public result_int reduce_my_array_float(Allocation ain1) { 398 return reduce_my_array_float(ain1, null); 399 } 400 401 // ain1 = "int val" 402 public result_int reduce_my_array_float(Allocation ain1, Script.LaunchOptions sc) { 403 // check ain1 404 if (!ain1.getType().getElement().isCompatible(__I32)) { 405 throw new RSRuntimeException("Type mismatch with I32!"); 406 } 407 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 408 aout.setAutoPadding(true); 409 reduce(mExportReduceIdx_my_array_float, new Allocation[]{ain1}, aout, sc); 410 return new result_int(aout); 411 } 412 413 private final static int mExportReduceIdx_my_array_float2 = 10; 414 // in1 = "val" 415 public result_int reduce_my_array_float2(int[] in1) { 416 // Verify that "in1" is non-null. 417 if (in1 == null) { 418 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 419 } 420 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 421 ain1.setAutoPadding(true); 422 ain1.copyFrom(in1); 423 424 result_int result = reduce_my_array_float2(ain1, null); 425 result.mTempIns = new Allocation[]{ain1}; 426 return result; 427 } 428 429 // ain1 = "int val" 430 public result_int reduce_my_array_float2(Allocation ain1) { 431 return reduce_my_array_float2(ain1, null); 432 } 433 434 // ain1 = "int val" 435 public result_int reduce_my_array_float2(Allocation ain1, Script.LaunchOptions sc) { 436 // check ain1 437 if (!ain1.getType().getElement().isCompatible(__I32)) { 438 throw new RSRuntimeException("Type mismatch with I32!"); 439 } 440 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 441 aout.setAutoPadding(true); 442 reduce(mExportReduceIdx_my_array_float2, new Allocation[]{ain1}, aout, sc); 443 return new result_int(aout); 444 } 445 446 private final static int mExportReduceIdx_my_array_float4 = 11; 447 // in1 = "val" 448 public result_int reduce_my_array_float4(int[] in1) { 449 // Verify that "in1" is non-null. 450 if (in1 == null) { 451 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 452 } 453 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 454 ain1.setAutoPadding(true); 455 ain1.copyFrom(in1); 456 457 result_int result = reduce_my_array_float4(ain1, null); 458 result.mTempIns = new Allocation[]{ain1}; 459 return result; 460 } 461 462 // ain1 = "int val" 463 public result_int reduce_my_array_float4(Allocation ain1) { 464 return reduce_my_array_float4(ain1, null); 465 } 466 467 // ain1 = "int val" 468 public result_int reduce_my_array_float4(Allocation ain1, Script.LaunchOptions sc) { 469 // check ain1 470 if (!ain1.getType().getElement().isCompatible(__I32)) { 471 throw new RSRuntimeException("Type mismatch with I32!"); 472 } 473 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 474 aout.setAutoPadding(true); 475 reduce(mExportReduceIdx_my_array_float4, new Allocation[]{ain1}, aout, sc); 476 return new result_int(aout); 477 } 478 479 private final static int mExportReduceIdx_my_double = 12; 480 // in1 = "val" 481 public result_int reduce_my_double(int[] in1) { 482 // Verify that "in1" is non-null. 483 if (in1 == null) { 484 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 485 } 486 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 487 ain1.setAutoPadding(true); 488 ain1.copyFrom(in1); 489 490 result_int result = reduce_my_double(ain1, null); 491 result.mTempIns = new Allocation[]{ain1}; 492 return result; 493 } 494 495 // ain1 = "int val" 496 public result_int reduce_my_double(Allocation ain1) { 497 return reduce_my_double(ain1, null); 498 } 499 500 // ain1 = "int val" 501 public result_int reduce_my_double(Allocation ain1, Script.LaunchOptions sc) { 502 // check ain1 503 if (!ain1.getType().getElement().isCompatible(__I32)) { 504 throw new RSRuntimeException("Type mismatch with I32!"); 505 } 506 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 507 aout.setAutoPadding(true); 508 reduce(mExportReduceIdx_my_double, new Allocation[]{ain1}, aout, sc); 509 return new result_int(aout); 510 } 511 512 private final static int mExportReduceIdx_my_double2 = 13; 513 // in1 = "val" 514 public result_int reduce_my_double2(int[] in1) { 515 // Verify that "in1" is non-null. 516 if (in1 == null) { 517 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 518 } 519 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 520 ain1.setAutoPadding(true); 521 ain1.copyFrom(in1); 522 523 result_int result = reduce_my_double2(ain1, null); 524 result.mTempIns = new Allocation[]{ain1}; 525 return result; 526 } 527 528 // ain1 = "int val" 529 public result_int reduce_my_double2(Allocation ain1) { 530 return reduce_my_double2(ain1, null); 531 } 532 533 // ain1 = "int val" 534 public result_int reduce_my_double2(Allocation ain1, Script.LaunchOptions sc) { 535 // check ain1 536 if (!ain1.getType().getElement().isCompatible(__I32)) { 537 throw new RSRuntimeException("Type mismatch with I32!"); 538 } 539 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 540 aout.setAutoPadding(true); 541 reduce(mExportReduceIdx_my_double2, new Allocation[]{ain1}, aout, sc); 542 return new result_int(aout); 543 } 544 545 private final static int mExportReduceIdx_my_double4 = 14; 546 // in1 = "val" 547 public result_int reduce_my_double4(int[] in1) { 548 // Verify that "in1" is non-null. 549 if (in1 == null) { 550 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 551 } 552 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 553 ain1.setAutoPadding(true); 554 ain1.copyFrom(in1); 555 556 result_int result = reduce_my_double4(ain1, null); 557 result.mTempIns = new Allocation[]{ain1}; 558 return result; 559 } 560 561 // ain1 = "int val" 562 public result_int reduce_my_double4(Allocation ain1) { 563 return reduce_my_double4(ain1, null); 564 } 565 566 // ain1 = "int val" 567 public result_int reduce_my_double4(Allocation ain1, Script.LaunchOptions sc) { 568 // check ain1 569 if (!ain1.getType().getElement().isCompatible(__I32)) { 570 throw new RSRuntimeException("Type mismatch with I32!"); 571 } 572 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 573 aout.setAutoPadding(true); 574 reduce(mExportReduceIdx_my_double4, new Allocation[]{ain1}, aout, sc); 575 return new result_int(aout); 576 } 577 578 private final static int mExportReduceIdx_my_array_double = 15; 579 // in1 = "val" 580 public result_int reduce_my_array_double(int[] in1) { 581 // Verify that "in1" is non-null. 582 if (in1 == null) { 583 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 584 } 585 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 586 ain1.setAutoPadding(true); 587 ain1.copyFrom(in1); 588 589 result_int result = reduce_my_array_double(ain1, null); 590 result.mTempIns = new Allocation[]{ain1}; 591 return result; 592 } 593 594 // ain1 = "int val" 595 public result_int reduce_my_array_double(Allocation ain1) { 596 return reduce_my_array_double(ain1, null); 597 } 598 599 // ain1 = "int val" 600 public result_int reduce_my_array_double(Allocation ain1, Script.LaunchOptions sc) { 601 // check ain1 602 if (!ain1.getType().getElement().isCompatible(__I32)) { 603 throw new RSRuntimeException("Type mismatch with I32!"); 604 } 605 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 606 aout.setAutoPadding(true); 607 reduce(mExportReduceIdx_my_array_double, new Allocation[]{ain1}, aout, sc); 608 return new result_int(aout); 609 } 610 611 private final static int mExportReduceIdx_my_array_double2 = 16; 612 // in1 = "val" 613 public result_int reduce_my_array_double2(int[] in1) { 614 // Verify that "in1" is non-null. 615 if (in1 == null) { 616 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 617 } 618 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 619 ain1.setAutoPadding(true); 620 ain1.copyFrom(in1); 621 622 result_int result = reduce_my_array_double2(ain1, null); 623 result.mTempIns = new Allocation[]{ain1}; 624 return result; 625 } 626 627 // ain1 = "int val" 628 public result_int reduce_my_array_double2(Allocation ain1) { 629 return reduce_my_array_double2(ain1, null); 630 } 631 632 // ain1 = "int val" 633 public result_int reduce_my_array_double2(Allocation ain1, Script.LaunchOptions sc) { 634 // check ain1 635 if (!ain1.getType().getElement().isCompatible(__I32)) { 636 throw new RSRuntimeException("Type mismatch with I32!"); 637 } 638 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 639 aout.setAutoPadding(true); 640 reduce(mExportReduceIdx_my_array_double2, new Allocation[]{ain1}, aout, sc); 641 return new result_int(aout); 642 } 643 644 private final static int mExportReduceIdx_my_array_double4 = 17; 645 // in1 = "val" 646 public result_int reduce_my_array_double4(int[] in1) { 647 // Verify that "in1" is non-null. 648 if (in1 == null) { 649 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 650 } 651 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 652 ain1.setAutoPadding(true); 653 ain1.copyFrom(in1); 654 655 result_int result = reduce_my_array_double4(ain1, null); 656 result.mTempIns = new Allocation[]{ain1}; 657 return result; 658 } 659 660 // ain1 = "int val" 661 public result_int reduce_my_array_double4(Allocation ain1) { 662 return reduce_my_array_double4(ain1, null); 663 } 664 665 // ain1 = "int val" 666 public result_int reduce_my_array_double4(Allocation ain1, Script.LaunchOptions sc) { 667 // check ain1 668 if (!ain1.getType().getElement().isCompatible(__I32)) { 669 throw new RSRuntimeException("Type mismatch with I32!"); 670 } 671 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 672 aout.setAutoPadding(true); 673 reduce(mExportReduceIdx_my_array_double4, new Allocation[]{ain1}, aout, sc); 674 return new result_int(aout); 675 } 676 677 private final static int mExportReduceIdx_my_char = 18; 678 // in1 = "val" 679 public result_int reduce_my_char(int[] in1) { 680 // Verify that "in1" is non-null. 681 if (in1 == null) { 682 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 683 } 684 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 685 ain1.setAutoPadding(true); 686 ain1.copyFrom(in1); 687 688 result_int result = reduce_my_char(ain1, null); 689 result.mTempIns = new Allocation[]{ain1}; 690 return result; 691 } 692 693 // ain1 = "int val" 694 public result_int reduce_my_char(Allocation ain1) { 695 return reduce_my_char(ain1, null); 696 } 697 698 // ain1 = "int val" 699 public result_int reduce_my_char(Allocation ain1, Script.LaunchOptions sc) { 700 // check ain1 701 if (!ain1.getType().getElement().isCompatible(__I32)) { 702 throw new RSRuntimeException("Type mismatch with I32!"); 703 } 704 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 705 aout.setAutoPadding(true); 706 reduce(mExportReduceIdx_my_char, new Allocation[]{ain1}, aout, sc); 707 return new result_int(aout); 708 } 709 710 private final static int mExportReduceIdx_my_char2 = 19; 711 // in1 = "val" 712 public result_int reduce_my_char2(int[] in1) { 713 // Verify that "in1" is non-null. 714 if (in1 == null) { 715 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 716 } 717 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 718 ain1.setAutoPadding(true); 719 ain1.copyFrom(in1); 720 721 result_int result = reduce_my_char2(ain1, null); 722 result.mTempIns = new Allocation[]{ain1}; 723 return result; 724 } 725 726 // ain1 = "int val" 727 public result_int reduce_my_char2(Allocation ain1) { 728 return reduce_my_char2(ain1, null); 729 } 730 731 // ain1 = "int val" 732 public result_int reduce_my_char2(Allocation ain1, Script.LaunchOptions sc) { 733 // check ain1 734 if (!ain1.getType().getElement().isCompatible(__I32)) { 735 throw new RSRuntimeException("Type mismatch with I32!"); 736 } 737 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 738 aout.setAutoPadding(true); 739 reduce(mExportReduceIdx_my_char2, new Allocation[]{ain1}, aout, sc); 740 return new result_int(aout); 741 } 742 743 private final static int mExportReduceIdx_my_char4 = 20; 744 // in1 = "val" 745 public result_int reduce_my_char4(int[] in1) { 746 // Verify that "in1" is non-null. 747 if (in1 == null) { 748 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 749 } 750 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 751 ain1.setAutoPadding(true); 752 ain1.copyFrom(in1); 753 754 result_int result = reduce_my_char4(ain1, null); 755 result.mTempIns = new Allocation[]{ain1}; 756 return result; 757 } 758 759 // ain1 = "int val" 760 public result_int reduce_my_char4(Allocation ain1) { 761 return reduce_my_char4(ain1, null); 762 } 763 764 // ain1 = "int val" 765 public result_int reduce_my_char4(Allocation ain1, Script.LaunchOptions sc) { 766 // check ain1 767 if (!ain1.getType().getElement().isCompatible(__I32)) { 768 throw new RSRuntimeException("Type mismatch with I32!"); 769 } 770 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 771 aout.setAutoPadding(true); 772 reduce(mExportReduceIdx_my_char4, new Allocation[]{ain1}, aout, sc); 773 return new result_int(aout); 774 } 775 776 private final static int mExportReduceIdx_my_array_char = 21; 777 // in1 = "val" 778 public result_int reduce_my_array_char(int[] in1) { 779 // Verify that "in1" is non-null. 780 if (in1 == null) { 781 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 782 } 783 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 784 ain1.setAutoPadding(true); 785 ain1.copyFrom(in1); 786 787 result_int result = reduce_my_array_char(ain1, null); 788 result.mTempIns = new Allocation[]{ain1}; 789 return result; 790 } 791 792 // ain1 = "int val" 793 public result_int reduce_my_array_char(Allocation ain1) { 794 return reduce_my_array_char(ain1, null); 795 } 796 797 // ain1 = "int val" 798 public result_int reduce_my_array_char(Allocation ain1, Script.LaunchOptions sc) { 799 // check ain1 800 if (!ain1.getType().getElement().isCompatible(__I32)) { 801 throw new RSRuntimeException("Type mismatch with I32!"); 802 } 803 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 804 aout.setAutoPadding(true); 805 reduce(mExportReduceIdx_my_array_char, new Allocation[]{ain1}, aout, sc); 806 return new result_int(aout); 807 } 808 809 private final static int mExportReduceIdx_my_array_char2 = 22; 810 // in1 = "val" 811 public result_int reduce_my_array_char2(int[] in1) { 812 // Verify that "in1" is non-null. 813 if (in1 == null) { 814 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 815 } 816 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 817 ain1.setAutoPadding(true); 818 ain1.copyFrom(in1); 819 820 result_int result = reduce_my_array_char2(ain1, null); 821 result.mTempIns = new Allocation[]{ain1}; 822 return result; 823 } 824 825 // ain1 = "int val" 826 public result_int reduce_my_array_char2(Allocation ain1) { 827 return reduce_my_array_char2(ain1, null); 828 } 829 830 // ain1 = "int val" 831 public result_int reduce_my_array_char2(Allocation ain1, Script.LaunchOptions sc) { 832 // check ain1 833 if (!ain1.getType().getElement().isCompatible(__I32)) { 834 throw new RSRuntimeException("Type mismatch with I32!"); 835 } 836 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 837 aout.setAutoPadding(true); 838 reduce(mExportReduceIdx_my_array_char2, new Allocation[]{ain1}, aout, sc); 839 return new result_int(aout); 840 } 841 842 private final static int mExportReduceIdx_my_array_char4 = 23; 843 // in1 = "val" 844 public result_int reduce_my_array_char4(int[] in1) { 845 // Verify that "in1" is non-null. 846 if (in1 == null) { 847 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 848 } 849 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 850 ain1.setAutoPadding(true); 851 ain1.copyFrom(in1); 852 853 result_int result = reduce_my_array_char4(ain1, null); 854 result.mTempIns = new Allocation[]{ain1}; 855 return result; 856 } 857 858 // ain1 = "int val" 859 public result_int reduce_my_array_char4(Allocation ain1) { 860 return reduce_my_array_char4(ain1, null); 861 } 862 863 // ain1 = "int val" 864 public result_int reduce_my_array_char4(Allocation ain1, Script.LaunchOptions sc) { 865 // check ain1 866 if (!ain1.getType().getElement().isCompatible(__I32)) { 867 throw new RSRuntimeException("Type mismatch with I32!"); 868 } 869 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 870 aout.setAutoPadding(true); 871 reduce(mExportReduceIdx_my_array_char4, new Allocation[]{ain1}, aout, sc); 872 return new result_int(aout); 873 } 874 875 private final static int mExportReduceIdx_my_short = 24; 876 // in1 = "val" 877 public result_int reduce_my_short(int[] in1) { 878 // Verify that "in1" is non-null. 879 if (in1 == null) { 880 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 881 } 882 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 883 ain1.setAutoPadding(true); 884 ain1.copyFrom(in1); 885 886 result_int result = reduce_my_short(ain1, null); 887 result.mTempIns = new Allocation[]{ain1}; 888 return result; 889 } 890 891 // ain1 = "int val" 892 public result_int reduce_my_short(Allocation ain1) { 893 return reduce_my_short(ain1, null); 894 } 895 896 // ain1 = "int val" 897 public result_int reduce_my_short(Allocation ain1, Script.LaunchOptions sc) { 898 // check ain1 899 if (!ain1.getType().getElement().isCompatible(__I32)) { 900 throw new RSRuntimeException("Type mismatch with I32!"); 901 } 902 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 903 aout.setAutoPadding(true); 904 reduce(mExportReduceIdx_my_short, new Allocation[]{ain1}, aout, sc); 905 return new result_int(aout); 906 } 907 908 private final static int mExportReduceIdx_my_short2 = 25; 909 // in1 = "val" 910 public result_int reduce_my_short2(int[] in1) { 911 // Verify that "in1" is non-null. 912 if (in1 == null) { 913 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 914 } 915 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 916 ain1.setAutoPadding(true); 917 ain1.copyFrom(in1); 918 919 result_int result = reduce_my_short2(ain1, null); 920 result.mTempIns = new Allocation[]{ain1}; 921 return result; 922 } 923 924 // ain1 = "int val" 925 public result_int reduce_my_short2(Allocation ain1) { 926 return reduce_my_short2(ain1, null); 927 } 928 929 // ain1 = "int val" 930 public result_int reduce_my_short2(Allocation ain1, Script.LaunchOptions sc) { 931 // check ain1 932 if (!ain1.getType().getElement().isCompatible(__I32)) { 933 throw new RSRuntimeException("Type mismatch with I32!"); 934 } 935 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 936 aout.setAutoPadding(true); 937 reduce(mExportReduceIdx_my_short2, new Allocation[]{ain1}, aout, sc); 938 return new result_int(aout); 939 } 940 941 private final static int mExportReduceIdx_my_short4 = 26; 942 // in1 = "val" 943 public result_int reduce_my_short4(int[] in1) { 944 // Verify that "in1" is non-null. 945 if (in1 == null) { 946 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 947 } 948 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 949 ain1.setAutoPadding(true); 950 ain1.copyFrom(in1); 951 952 result_int result = reduce_my_short4(ain1, null); 953 result.mTempIns = new Allocation[]{ain1}; 954 return result; 955 } 956 957 // ain1 = "int val" 958 public result_int reduce_my_short4(Allocation ain1) { 959 return reduce_my_short4(ain1, null); 960 } 961 962 // ain1 = "int val" 963 public result_int reduce_my_short4(Allocation ain1, Script.LaunchOptions sc) { 964 // check ain1 965 if (!ain1.getType().getElement().isCompatible(__I32)) { 966 throw new RSRuntimeException("Type mismatch with I32!"); 967 } 968 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 969 aout.setAutoPadding(true); 970 reduce(mExportReduceIdx_my_short4, new Allocation[]{ain1}, aout, sc); 971 return new result_int(aout); 972 } 973 974 private final static int mExportReduceIdx_my_array_short = 27; 975 // in1 = "val" 976 public result_int reduce_my_array_short(int[] in1) { 977 // Verify that "in1" is non-null. 978 if (in1 == null) { 979 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 980 } 981 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 982 ain1.setAutoPadding(true); 983 ain1.copyFrom(in1); 984 985 result_int result = reduce_my_array_short(ain1, null); 986 result.mTempIns = new Allocation[]{ain1}; 987 return result; 988 } 989 990 // ain1 = "int val" 991 public result_int reduce_my_array_short(Allocation ain1) { 992 return reduce_my_array_short(ain1, null); 993 } 994 995 // ain1 = "int val" 996 public result_int reduce_my_array_short(Allocation ain1, Script.LaunchOptions sc) { 997 // check ain1 998 if (!ain1.getType().getElement().isCompatible(__I32)) { 999 throw new RSRuntimeException("Type mismatch with I32!"); 1000 } 1001 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1002 aout.setAutoPadding(true); 1003 reduce(mExportReduceIdx_my_array_short, new Allocation[]{ain1}, aout, sc); 1004 return new result_int(aout); 1005 } 1006 1007 private final static int mExportReduceIdx_my_array_short2 = 28; 1008 // in1 = "val" 1009 public result_int reduce_my_array_short2(int[] in1) { 1010 // Verify that "in1" is non-null. 1011 if (in1 == null) { 1012 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1013 } 1014 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1015 ain1.setAutoPadding(true); 1016 ain1.copyFrom(in1); 1017 1018 result_int result = reduce_my_array_short2(ain1, null); 1019 result.mTempIns = new Allocation[]{ain1}; 1020 return result; 1021 } 1022 1023 // ain1 = "int val" 1024 public result_int reduce_my_array_short2(Allocation ain1) { 1025 return reduce_my_array_short2(ain1, null); 1026 } 1027 1028 // ain1 = "int val" 1029 public result_int reduce_my_array_short2(Allocation ain1, Script.LaunchOptions sc) { 1030 // check ain1 1031 if (!ain1.getType().getElement().isCompatible(__I32)) { 1032 throw new RSRuntimeException("Type mismatch with I32!"); 1033 } 1034 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1035 aout.setAutoPadding(true); 1036 reduce(mExportReduceIdx_my_array_short2, new Allocation[]{ain1}, aout, sc); 1037 return new result_int(aout); 1038 } 1039 1040 private final static int mExportReduceIdx_my_array_short4 = 29; 1041 // in1 = "val" 1042 public result_int reduce_my_array_short4(int[] in1) { 1043 // Verify that "in1" is non-null. 1044 if (in1 == null) { 1045 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1046 } 1047 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1048 ain1.setAutoPadding(true); 1049 ain1.copyFrom(in1); 1050 1051 result_int result = reduce_my_array_short4(ain1, null); 1052 result.mTempIns = new Allocation[]{ain1}; 1053 return result; 1054 } 1055 1056 // ain1 = "int val" 1057 public result_int reduce_my_array_short4(Allocation ain1) { 1058 return reduce_my_array_short4(ain1, null); 1059 } 1060 1061 // ain1 = "int val" 1062 public result_int reduce_my_array_short4(Allocation ain1, Script.LaunchOptions sc) { 1063 // check ain1 1064 if (!ain1.getType().getElement().isCompatible(__I32)) { 1065 throw new RSRuntimeException("Type mismatch with I32!"); 1066 } 1067 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1068 aout.setAutoPadding(true); 1069 reduce(mExportReduceIdx_my_array_short4, new Allocation[]{ain1}, aout, sc); 1070 return new result_int(aout); 1071 } 1072 1073 private final static int mExportReduceIdx_my_int = 30; 1074 // in1 = "val" 1075 public result_int reduce_my_int(int[] in1) { 1076 // Verify that "in1" is non-null. 1077 if (in1 == null) { 1078 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1079 } 1080 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1081 ain1.setAutoPadding(true); 1082 ain1.copyFrom(in1); 1083 1084 result_int result = reduce_my_int(ain1, null); 1085 result.mTempIns = new Allocation[]{ain1}; 1086 return result; 1087 } 1088 1089 // ain1 = "int val" 1090 public result_int reduce_my_int(Allocation ain1) { 1091 return reduce_my_int(ain1, null); 1092 } 1093 1094 // ain1 = "int val" 1095 public result_int reduce_my_int(Allocation ain1, Script.LaunchOptions sc) { 1096 // check ain1 1097 if (!ain1.getType().getElement().isCompatible(__I32)) { 1098 throw new RSRuntimeException("Type mismatch with I32!"); 1099 } 1100 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1101 aout.setAutoPadding(true); 1102 reduce(mExportReduceIdx_my_int, new Allocation[]{ain1}, aout, sc); 1103 return new result_int(aout); 1104 } 1105 1106 private final static int mExportReduceIdx_my_int2 = 31; 1107 // in1 = "val" 1108 public result_int reduce_my_int2(int[] in1) { 1109 // Verify that "in1" is non-null. 1110 if (in1 == null) { 1111 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1112 } 1113 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1114 ain1.setAutoPadding(true); 1115 ain1.copyFrom(in1); 1116 1117 result_int result = reduce_my_int2(ain1, null); 1118 result.mTempIns = new Allocation[]{ain1}; 1119 return result; 1120 } 1121 1122 // ain1 = "int val" 1123 public result_int reduce_my_int2(Allocation ain1) { 1124 return reduce_my_int2(ain1, null); 1125 } 1126 1127 // ain1 = "int val" 1128 public result_int reduce_my_int2(Allocation ain1, Script.LaunchOptions sc) { 1129 // check ain1 1130 if (!ain1.getType().getElement().isCompatible(__I32)) { 1131 throw new RSRuntimeException("Type mismatch with I32!"); 1132 } 1133 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1134 aout.setAutoPadding(true); 1135 reduce(mExportReduceIdx_my_int2, new Allocation[]{ain1}, aout, sc); 1136 return new result_int(aout); 1137 } 1138 1139 private final static int mExportReduceIdx_my_int4 = 32; 1140 // in1 = "val" 1141 public result_int reduce_my_int4(int[] in1) { 1142 // Verify that "in1" is non-null. 1143 if (in1 == null) { 1144 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1145 } 1146 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1147 ain1.setAutoPadding(true); 1148 ain1.copyFrom(in1); 1149 1150 result_int result = reduce_my_int4(ain1, null); 1151 result.mTempIns = new Allocation[]{ain1}; 1152 return result; 1153 } 1154 1155 // ain1 = "int val" 1156 public result_int reduce_my_int4(Allocation ain1) { 1157 return reduce_my_int4(ain1, null); 1158 } 1159 1160 // ain1 = "int val" 1161 public result_int reduce_my_int4(Allocation ain1, Script.LaunchOptions sc) { 1162 // check ain1 1163 if (!ain1.getType().getElement().isCompatible(__I32)) { 1164 throw new RSRuntimeException("Type mismatch with I32!"); 1165 } 1166 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1167 aout.setAutoPadding(true); 1168 reduce(mExportReduceIdx_my_int4, new Allocation[]{ain1}, aout, sc); 1169 return new result_int(aout); 1170 } 1171 1172 private final static int mExportReduceIdx_my_array_int = 33; 1173 // in1 = "val" 1174 public result_int reduce_my_array_int(int[] in1) { 1175 // Verify that "in1" is non-null. 1176 if (in1 == null) { 1177 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1178 } 1179 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1180 ain1.setAutoPadding(true); 1181 ain1.copyFrom(in1); 1182 1183 result_int result = reduce_my_array_int(ain1, null); 1184 result.mTempIns = new Allocation[]{ain1}; 1185 return result; 1186 } 1187 1188 // ain1 = "int val" 1189 public result_int reduce_my_array_int(Allocation ain1) { 1190 return reduce_my_array_int(ain1, null); 1191 } 1192 1193 // ain1 = "int val" 1194 public result_int reduce_my_array_int(Allocation ain1, Script.LaunchOptions sc) { 1195 // check ain1 1196 if (!ain1.getType().getElement().isCompatible(__I32)) { 1197 throw new RSRuntimeException("Type mismatch with I32!"); 1198 } 1199 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1200 aout.setAutoPadding(true); 1201 reduce(mExportReduceIdx_my_array_int, new Allocation[]{ain1}, aout, sc); 1202 return new result_int(aout); 1203 } 1204 1205 private final static int mExportReduceIdx_my_array_int2 = 34; 1206 // in1 = "val" 1207 public result_int reduce_my_array_int2(int[] in1) { 1208 // Verify that "in1" is non-null. 1209 if (in1 == null) { 1210 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1211 } 1212 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1213 ain1.setAutoPadding(true); 1214 ain1.copyFrom(in1); 1215 1216 result_int result = reduce_my_array_int2(ain1, null); 1217 result.mTempIns = new Allocation[]{ain1}; 1218 return result; 1219 } 1220 1221 // ain1 = "int val" 1222 public result_int reduce_my_array_int2(Allocation ain1) { 1223 return reduce_my_array_int2(ain1, null); 1224 } 1225 1226 // ain1 = "int val" 1227 public result_int reduce_my_array_int2(Allocation ain1, Script.LaunchOptions sc) { 1228 // check ain1 1229 if (!ain1.getType().getElement().isCompatible(__I32)) { 1230 throw new RSRuntimeException("Type mismatch with I32!"); 1231 } 1232 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1233 aout.setAutoPadding(true); 1234 reduce(mExportReduceIdx_my_array_int2, new Allocation[]{ain1}, aout, sc); 1235 return new result_int(aout); 1236 } 1237 1238 private final static int mExportReduceIdx_my_array_int4 = 35; 1239 // in1 = "val" 1240 public result_int reduce_my_array_int4(int[] in1) { 1241 // Verify that "in1" is non-null. 1242 if (in1 == null) { 1243 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1244 } 1245 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1246 ain1.setAutoPadding(true); 1247 ain1.copyFrom(in1); 1248 1249 result_int result = reduce_my_array_int4(ain1, null); 1250 result.mTempIns = new Allocation[]{ain1}; 1251 return result; 1252 } 1253 1254 // ain1 = "int val" 1255 public result_int reduce_my_array_int4(Allocation ain1) { 1256 return reduce_my_array_int4(ain1, null); 1257 } 1258 1259 // ain1 = "int val" 1260 public result_int reduce_my_array_int4(Allocation ain1, Script.LaunchOptions sc) { 1261 // check ain1 1262 if (!ain1.getType().getElement().isCompatible(__I32)) { 1263 throw new RSRuntimeException("Type mismatch with I32!"); 1264 } 1265 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1266 aout.setAutoPadding(true); 1267 reduce(mExportReduceIdx_my_array_int4, new Allocation[]{ain1}, aout, sc); 1268 return new result_int(aout); 1269 } 1270 1271 private final static int mExportReduceIdx_my_long = 36; 1272 // in1 = "val" 1273 public result_int reduce_my_long(int[] in1) { 1274 // Verify that "in1" is non-null. 1275 if (in1 == null) { 1276 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1277 } 1278 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1279 ain1.setAutoPadding(true); 1280 ain1.copyFrom(in1); 1281 1282 result_int result = reduce_my_long(ain1, null); 1283 result.mTempIns = new Allocation[]{ain1}; 1284 return result; 1285 } 1286 1287 // ain1 = "int val" 1288 public result_int reduce_my_long(Allocation ain1) { 1289 return reduce_my_long(ain1, null); 1290 } 1291 1292 // ain1 = "int val" 1293 public result_int reduce_my_long(Allocation ain1, Script.LaunchOptions sc) { 1294 // check ain1 1295 if (!ain1.getType().getElement().isCompatible(__I32)) { 1296 throw new RSRuntimeException("Type mismatch with I32!"); 1297 } 1298 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1299 aout.setAutoPadding(true); 1300 reduce(mExportReduceIdx_my_long, new Allocation[]{ain1}, aout, sc); 1301 return new result_int(aout); 1302 } 1303 1304 private final static int mExportReduceIdx_my_long2 = 37; 1305 // in1 = "val" 1306 public result_int reduce_my_long2(int[] in1) { 1307 // Verify that "in1" is non-null. 1308 if (in1 == null) { 1309 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1310 } 1311 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1312 ain1.setAutoPadding(true); 1313 ain1.copyFrom(in1); 1314 1315 result_int result = reduce_my_long2(ain1, null); 1316 result.mTempIns = new Allocation[]{ain1}; 1317 return result; 1318 } 1319 1320 // ain1 = "int val" 1321 public result_int reduce_my_long2(Allocation ain1) { 1322 return reduce_my_long2(ain1, null); 1323 } 1324 1325 // ain1 = "int val" 1326 public result_int reduce_my_long2(Allocation ain1, Script.LaunchOptions sc) { 1327 // check ain1 1328 if (!ain1.getType().getElement().isCompatible(__I32)) { 1329 throw new RSRuntimeException("Type mismatch with I32!"); 1330 } 1331 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1332 aout.setAutoPadding(true); 1333 reduce(mExportReduceIdx_my_long2, new Allocation[]{ain1}, aout, sc); 1334 return new result_int(aout); 1335 } 1336 1337 private final static int mExportReduceIdx_my_long4 = 38; 1338 // in1 = "val" 1339 public result_int reduce_my_long4(int[] in1) { 1340 // Verify that "in1" is non-null. 1341 if (in1 == null) { 1342 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1343 } 1344 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1345 ain1.setAutoPadding(true); 1346 ain1.copyFrom(in1); 1347 1348 result_int result = reduce_my_long4(ain1, null); 1349 result.mTempIns = new Allocation[]{ain1}; 1350 return result; 1351 } 1352 1353 // ain1 = "int val" 1354 public result_int reduce_my_long4(Allocation ain1) { 1355 return reduce_my_long4(ain1, null); 1356 } 1357 1358 // ain1 = "int val" 1359 public result_int reduce_my_long4(Allocation ain1, Script.LaunchOptions sc) { 1360 // check ain1 1361 if (!ain1.getType().getElement().isCompatible(__I32)) { 1362 throw new RSRuntimeException("Type mismatch with I32!"); 1363 } 1364 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1365 aout.setAutoPadding(true); 1366 reduce(mExportReduceIdx_my_long4, new Allocation[]{ain1}, aout, sc); 1367 return new result_int(aout); 1368 } 1369 1370 private final static int mExportReduceIdx_my_array_long = 39; 1371 // in1 = "val" 1372 public result_int reduce_my_array_long(int[] in1) { 1373 // Verify that "in1" is non-null. 1374 if (in1 == null) { 1375 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1376 } 1377 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1378 ain1.setAutoPadding(true); 1379 ain1.copyFrom(in1); 1380 1381 result_int result = reduce_my_array_long(ain1, null); 1382 result.mTempIns = new Allocation[]{ain1}; 1383 return result; 1384 } 1385 1386 // ain1 = "int val" 1387 public result_int reduce_my_array_long(Allocation ain1) { 1388 return reduce_my_array_long(ain1, null); 1389 } 1390 1391 // ain1 = "int val" 1392 public result_int reduce_my_array_long(Allocation ain1, Script.LaunchOptions sc) { 1393 // check ain1 1394 if (!ain1.getType().getElement().isCompatible(__I32)) { 1395 throw new RSRuntimeException("Type mismatch with I32!"); 1396 } 1397 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1398 aout.setAutoPadding(true); 1399 reduce(mExportReduceIdx_my_array_long, new Allocation[]{ain1}, aout, sc); 1400 return new result_int(aout); 1401 } 1402 1403 private final static int mExportReduceIdx_my_array_long2 = 40; 1404 // in1 = "val" 1405 public result_int reduce_my_array_long2(int[] in1) { 1406 // Verify that "in1" is non-null. 1407 if (in1 == null) { 1408 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1409 } 1410 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1411 ain1.setAutoPadding(true); 1412 ain1.copyFrom(in1); 1413 1414 result_int result = reduce_my_array_long2(ain1, null); 1415 result.mTempIns = new Allocation[]{ain1}; 1416 return result; 1417 } 1418 1419 // ain1 = "int val" 1420 public result_int reduce_my_array_long2(Allocation ain1) { 1421 return reduce_my_array_long2(ain1, null); 1422 } 1423 1424 // ain1 = "int val" 1425 public result_int reduce_my_array_long2(Allocation ain1, Script.LaunchOptions sc) { 1426 // check ain1 1427 if (!ain1.getType().getElement().isCompatible(__I32)) { 1428 throw new RSRuntimeException("Type mismatch with I32!"); 1429 } 1430 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1431 aout.setAutoPadding(true); 1432 reduce(mExportReduceIdx_my_array_long2, new Allocation[]{ain1}, aout, sc); 1433 return new result_int(aout); 1434 } 1435 1436 private final static int mExportReduceIdx_my_array_long4 = 41; 1437 // in1 = "val" 1438 public result_int reduce_my_array_long4(int[] in1) { 1439 // Verify that "in1" is non-null. 1440 if (in1 == null) { 1441 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1442 } 1443 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1444 ain1.setAutoPadding(true); 1445 ain1.copyFrom(in1); 1446 1447 result_int result = reduce_my_array_long4(ain1, null); 1448 result.mTempIns = new Allocation[]{ain1}; 1449 return result; 1450 } 1451 1452 // ain1 = "int val" 1453 public result_int reduce_my_array_long4(Allocation ain1) { 1454 return reduce_my_array_long4(ain1, null); 1455 } 1456 1457 // ain1 = "int val" 1458 public result_int reduce_my_array_long4(Allocation ain1, Script.LaunchOptions sc) { 1459 // check ain1 1460 if (!ain1.getType().getElement().isCompatible(__I32)) { 1461 throw new RSRuntimeException("Type mismatch with I32!"); 1462 } 1463 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1464 aout.setAutoPadding(true); 1465 reduce(mExportReduceIdx_my_array_long4, new Allocation[]{ain1}, aout, sc); 1466 return new result_int(aout); 1467 } 1468 1469 private final static int mExportReduceIdx_my_uchar = 42; 1470 // in1 = "val" 1471 public result_int reduce_my_uchar(int[] in1) { 1472 // Verify that "in1" is non-null. 1473 if (in1 == null) { 1474 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1475 } 1476 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1477 ain1.setAutoPadding(true); 1478 ain1.copyFrom(in1); 1479 1480 result_int result = reduce_my_uchar(ain1, null); 1481 result.mTempIns = new Allocation[]{ain1}; 1482 return result; 1483 } 1484 1485 // ain1 = "int val" 1486 public result_int reduce_my_uchar(Allocation ain1) { 1487 return reduce_my_uchar(ain1, null); 1488 } 1489 1490 // ain1 = "int val" 1491 public result_int reduce_my_uchar(Allocation ain1, Script.LaunchOptions sc) { 1492 // check ain1 1493 if (!ain1.getType().getElement().isCompatible(__I32)) { 1494 throw new RSRuntimeException("Type mismatch with I32!"); 1495 } 1496 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1497 aout.setAutoPadding(true); 1498 reduce(mExportReduceIdx_my_uchar, new Allocation[]{ain1}, aout, sc); 1499 return new result_int(aout); 1500 } 1501 1502 private final static int mExportReduceIdx_my_uchar2 = 43; 1503 // in1 = "val" 1504 public result_int reduce_my_uchar2(int[] in1) { 1505 // Verify that "in1" is non-null. 1506 if (in1 == null) { 1507 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1508 } 1509 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1510 ain1.setAutoPadding(true); 1511 ain1.copyFrom(in1); 1512 1513 result_int result = reduce_my_uchar2(ain1, null); 1514 result.mTempIns = new Allocation[]{ain1}; 1515 return result; 1516 } 1517 1518 // ain1 = "int val" 1519 public result_int reduce_my_uchar2(Allocation ain1) { 1520 return reduce_my_uchar2(ain1, null); 1521 } 1522 1523 // ain1 = "int val" 1524 public result_int reduce_my_uchar2(Allocation ain1, Script.LaunchOptions sc) { 1525 // check ain1 1526 if (!ain1.getType().getElement().isCompatible(__I32)) { 1527 throw new RSRuntimeException("Type mismatch with I32!"); 1528 } 1529 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1530 aout.setAutoPadding(true); 1531 reduce(mExportReduceIdx_my_uchar2, new Allocation[]{ain1}, aout, sc); 1532 return new result_int(aout); 1533 } 1534 1535 private final static int mExportReduceIdx_my_uchar4 = 44; 1536 // in1 = "val" 1537 public result_int reduce_my_uchar4(int[] in1) { 1538 // Verify that "in1" is non-null. 1539 if (in1 == null) { 1540 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1541 } 1542 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1543 ain1.setAutoPadding(true); 1544 ain1.copyFrom(in1); 1545 1546 result_int result = reduce_my_uchar4(ain1, null); 1547 result.mTempIns = new Allocation[]{ain1}; 1548 return result; 1549 } 1550 1551 // ain1 = "int val" 1552 public result_int reduce_my_uchar4(Allocation ain1) { 1553 return reduce_my_uchar4(ain1, null); 1554 } 1555 1556 // ain1 = "int val" 1557 public result_int reduce_my_uchar4(Allocation ain1, Script.LaunchOptions sc) { 1558 // check ain1 1559 if (!ain1.getType().getElement().isCompatible(__I32)) { 1560 throw new RSRuntimeException("Type mismatch with I32!"); 1561 } 1562 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1563 aout.setAutoPadding(true); 1564 reduce(mExportReduceIdx_my_uchar4, new Allocation[]{ain1}, aout, sc); 1565 return new result_int(aout); 1566 } 1567 1568 private final static int mExportReduceIdx_my_array_uchar = 45; 1569 // in1 = "val" 1570 public result_int reduce_my_array_uchar(int[] in1) { 1571 // Verify that "in1" is non-null. 1572 if (in1 == null) { 1573 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1574 } 1575 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1576 ain1.setAutoPadding(true); 1577 ain1.copyFrom(in1); 1578 1579 result_int result = reduce_my_array_uchar(ain1, null); 1580 result.mTempIns = new Allocation[]{ain1}; 1581 return result; 1582 } 1583 1584 // ain1 = "int val" 1585 public result_int reduce_my_array_uchar(Allocation ain1) { 1586 return reduce_my_array_uchar(ain1, null); 1587 } 1588 1589 // ain1 = "int val" 1590 public result_int reduce_my_array_uchar(Allocation ain1, Script.LaunchOptions sc) { 1591 // check ain1 1592 if (!ain1.getType().getElement().isCompatible(__I32)) { 1593 throw new RSRuntimeException("Type mismatch with I32!"); 1594 } 1595 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1596 aout.setAutoPadding(true); 1597 reduce(mExportReduceIdx_my_array_uchar, new Allocation[]{ain1}, aout, sc); 1598 return new result_int(aout); 1599 } 1600 1601 private final static int mExportReduceIdx_my_array_uchar2 = 46; 1602 // in1 = "val" 1603 public result_int reduce_my_array_uchar2(int[] in1) { 1604 // Verify that "in1" is non-null. 1605 if (in1 == null) { 1606 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1607 } 1608 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1609 ain1.setAutoPadding(true); 1610 ain1.copyFrom(in1); 1611 1612 result_int result = reduce_my_array_uchar2(ain1, null); 1613 result.mTempIns = new Allocation[]{ain1}; 1614 return result; 1615 } 1616 1617 // ain1 = "int val" 1618 public result_int reduce_my_array_uchar2(Allocation ain1) { 1619 return reduce_my_array_uchar2(ain1, null); 1620 } 1621 1622 // ain1 = "int val" 1623 public result_int reduce_my_array_uchar2(Allocation ain1, Script.LaunchOptions sc) { 1624 // check ain1 1625 if (!ain1.getType().getElement().isCompatible(__I32)) { 1626 throw new RSRuntimeException("Type mismatch with I32!"); 1627 } 1628 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1629 aout.setAutoPadding(true); 1630 reduce(mExportReduceIdx_my_array_uchar2, new Allocation[]{ain1}, aout, sc); 1631 return new result_int(aout); 1632 } 1633 1634 private final static int mExportReduceIdx_my_array_uchar4 = 47; 1635 // in1 = "val" 1636 public result_int reduce_my_array_uchar4(int[] in1) { 1637 // Verify that "in1" is non-null. 1638 if (in1 == null) { 1639 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1640 } 1641 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1642 ain1.setAutoPadding(true); 1643 ain1.copyFrom(in1); 1644 1645 result_int result = reduce_my_array_uchar4(ain1, null); 1646 result.mTempIns = new Allocation[]{ain1}; 1647 return result; 1648 } 1649 1650 // ain1 = "int val" 1651 public result_int reduce_my_array_uchar4(Allocation ain1) { 1652 return reduce_my_array_uchar4(ain1, null); 1653 } 1654 1655 // ain1 = "int val" 1656 public result_int reduce_my_array_uchar4(Allocation ain1, Script.LaunchOptions sc) { 1657 // check ain1 1658 if (!ain1.getType().getElement().isCompatible(__I32)) { 1659 throw new RSRuntimeException("Type mismatch with I32!"); 1660 } 1661 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1662 aout.setAutoPadding(true); 1663 reduce(mExportReduceIdx_my_array_uchar4, new Allocation[]{ain1}, aout, sc); 1664 return new result_int(aout); 1665 } 1666 1667 private final static int mExportReduceIdx_my_ushort = 48; 1668 // in1 = "val" 1669 public result_int reduce_my_ushort(int[] in1) { 1670 // Verify that "in1" is non-null. 1671 if (in1 == null) { 1672 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1673 } 1674 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1675 ain1.setAutoPadding(true); 1676 ain1.copyFrom(in1); 1677 1678 result_int result = reduce_my_ushort(ain1, null); 1679 result.mTempIns = new Allocation[]{ain1}; 1680 return result; 1681 } 1682 1683 // ain1 = "int val" 1684 public result_int reduce_my_ushort(Allocation ain1) { 1685 return reduce_my_ushort(ain1, null); 1686 } 1687 1688 // ain1 = "int val" 1689 public result_int reduce_my_ushort(Allocation ain1, Script.LaunchOptions sc) { 1690 // check ain1 1691 if (!ain1.getType().getElement().isCompatible(__I32)) { 1692 throw new RSRuntimeException("Type mismatch with I32!"); 1693 } 1694 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1695 aout.setAutoPadding(true); 1696 reduce(mExportReduceIdx_my_ushort, new Allocation[]{ain1}, aout, sc); 1697 return new result_int(aout); 1698 } 1699 1700 private final static int mExportReduceIdx_my_ushort2 = 49; 1701 // in1 = "val" 1702 public result_int reduce_my_ushort2(int[] in1) { 1703 // Verify that "in1" is non-null. 1704 if (in1 == null) { 1705 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1706 } 1707 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1708 ain1.setAutoPadding(true); 1709 ain1.copyFrom(in1); 1710 1711 result_int result = reduce_my_ushort2(ain1, null); 1712 result.mTempIns = new Allocation[]{ain1}; 1713 return result; 1714 } 1715 1716 // ain1 = "int val" 1717 public result_int reduce_my_ushort2(Allocation ain1) { 1718 return reduce_my_ushort2(ain1, null); 1719 } 1720 1721 // ain1 = "int val" 1722 public result_int reduce_my_ushort2(Allocation ain1, Script.LaunchOptions sc) { 1723 // check ain1 1724 if (!ain1.getType().getElement().isCompatible(__I32)) { 1725 throw new RSRuntimeException("Type mismatch with I32!"); 1726 } 1727 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1728 aout.setAutoPadding(true); 1729 reduce(mExportReduceIdx_my_ushort2, new Allocation[]{ain1}, aout, sc); 1730 return new result_int(aout); 1731 } 1732 1733 private final static int mExportReduceIdx_my_ushort4 = 50; 1734 // in1 = "val" 1735 public result_int reduce_my_ushort4(int[] in1) { 1736 // Verify that "in1" is non-null. 1737 if (in1 == null) { 1738 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1739 } 1740 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1741 ain1.setAutoPadding(true); 1742 ain1.copyFrom(in1); 1743 1744 result_int result = reduce_my_ushort4(ain1, null); 1745 result.mTempIns = new Allocation[]{ain1}; 1746 return result; 1747 } 1748 1749 // ain1 = "int val" 1750 public result_int reduce_my_ushort4(Allocation ain1) { 1751 return reduce_my_ushort4(ain1, null); 1752 } 1753 1754 // ain1 = "int val" 1755 public result_int reduce_my_ushort4(Allocation ain1, Script.LaunchOptions sc) { 1756 // check ain1 1757 if (!ain1.getType().getElement().isCompatible(__I32)) { 1758 throw new RSRuntimeException("Type mismatch with I32!"); 1759 } 1760 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1761 aout.setAutoPadding(true); 1762 reduce(mExportReduceIdx_my_ushort4, new Allocation[]{ain1}, aout, sc); 1763 return new result_int(aout); 1764 } 1765 1766 private final static int mExportReduceIdx_my_array_ushort = 51; 1767 // in1 = "val" 1768 public result_int reduce_my_array_ushort(int[] in1) { 1769 // Verify that "in1" is non-null. 1770 if (in1 == null) { 1771 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1772 } 1773 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1774 ain1.setAutoPadding(true); 1775 ain1.copyFrom(in1); 1776 1777 result_int result = reduce_my_array_ushort(ain1, null); 1778 result.mTempIns = new Allocation[]{ain1}; 1779 return result; 1780 } 1781 1782 // ain1 = "int val" 1783 public result_int reduce_my_array_ushort(Allocation ain1) { 1784 return reduce_my_array_ushort(ain1, null); 1785 } 1786 1787 // ain1 = "int val" 1788 public result_int reduce_my_array_ushort(Allocation ain1, Script.LaunchOptions sc) { 1789 // check ain1 1790 if (!ain1.getType().getElement().isCompatible(__I32)) { 1791 throw new RSRuntimeException("Type mismatch with I32!"); 1792 } 1793 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1794 aout.setAutoPadding(true); 1795 reduce(mExportReduceIdx_my_array_ushort, new Allocation[]{ain1}, aout, sc); 1796 return new result_int(aout); 1797 } 1798 1799 private final static int mExportReduceIdx_my_array_ushort2 = 52; 1800 // in1 = "val" 1801 public result_int reduce_my_array_ushort2(int[] in1) { 1802 // Verify that "in1" is non-null. 1803 if (in1 == null) { 1804 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1805 } 1806 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1807 ain1.setAutoPadding(true); 1808 ain1.copyFrom(in1); 1809 1810 result_int result = reduce_my_array_ushort2(ain1, null); 1811 result.mTempIns = new Allocation[]{ain1}; 1812 return result; 1813 } 1814 1815 // ain1 = "int val" 1816 public result_int reduce_my_array_ushort2(Allocation ain1) { 1817 return reduce_my_array_ushort2(ain1, null); 1818 } 1819 1820 // ain1 = "int val" 1821 public result_int reduce_my_array_ushort2(Allocation ain1, Script.LaunchOptions sc) { 1822 // check ain1 1823 if (!ain1.getType().getElement().isCompatible(__I32)) { 1824 throw new RSRuntimeException("Type mismatch with I32!"); 1825 } 1826 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1827 aout.setAutoPadding(true); 1828 reduce(mExportReduceIdx_my_array_ushort2, new Allocation[]{ain1}, aout, sc); 1829 return new result_int(aout); 1830 } 1831 1832 private final static int mExportReduceIdx_my_array_ushort4 = 53; 1833 // in1 = "val" 1834 public result_int reduce_my_array_ushort4(int[] in1) { 1835 // Verify that "in1" is non-null. 1836 if (in1 == null) { 1837 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1838 } 1839 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1840 ain1.setAutoPadding(true); 1841 ain1.copyFrom(in1); 1842 1843 result_int result = reduce_my_array_ushort4(ain1, null); 1844 result.mTempIns = new Allocation[]{ain1}; 1845 return result; 1846 } 1847 1848 // ain1 = "int val" 1849 public result_int reduce_my_array_ushort4(Allocation ain1) { 1850 return reduce_my_array_ushort4(ain1, null); 1851 } 1852 1853 // ain1 = "int val" 1854 public result_int reduce_my_array_ushort4(Allocation ain1, Script.LaunchOptions sc) { 1855 // check ain1 1856 if (!ain1.getType().getElement().isCompatible(__I32)) { 1857 throw new RSRuntimeException("Type mismatch with I32!"); 1858 } 1859 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1860 aout.setAutoPadding(true); 1861 reduce(mExportReduceIdx_my_array_ushort4, new Allocation[]{ain1}, aout, sc); 1862 return new result_int(aout); 1863 } 1864 1865 private final static int mExportReduceIdx_my_uint = 54; 1866 // in1 = "val" 1867 public result_int reduce_my_uint(int[] in1) { 1868 // Verify that "in1" is non-null. 1869 if (in1 == null) { 1870 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1871 } 1872 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1873 ain1.setAutoPadding(true); 1874 ain1.copyFrom(in1); 1875 1876 result_int result = reduce_my_uint(ain1, null); 1877 result.mTempIns = new Allocation[]{ain1}; 1878 return result; 1879 } 1880 1881 // ain1 = "int val" 1882 public result_int reduce_my_uint(Allocation ain1) { 1883 return reduce_my_uint(ain1, null); 1884 } 1885 1886 // ain1 = "int val" 1887 public result_int reduce_my_uint(Allocation ain1, Script.LaunchOptions sc) { 1888 // check ain1 1889 if (!ain1.getType().getElement().isCompatible(__I32)) { 1890 throw new RSRuntimeException("Type mismatch with I32!"); 1891 } 1892 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1893 aout.setAutoPadding(true); 1894 reduce(mExportReduceIdx_my_uint, new Allocation[]{ain1}, aout, sc); 1895 return new result_int(aout); 1896 } 1897 1898 private final static int mExportReduceIdx_my_uint2 = 55; 1899 // in1 = "val" 1900 public result_int reduce_my_uint2(int[] in1) { 1901 // Verify that "in1" is non-null. 1902 if (in1 == null) { 1903 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1904 } 1905 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1906 ain1.setAutoPadding(true); 1907 ain1.copyFrom(in1); 1908 1909 result_int result = reduce_my_uint2(ain1, null); 1910 result.mTempIns = new Allocation[]{ain1}; 1911 return result; 1912 } 1913 1914 // ain1 = "int val" 1915 public result_int reduce_my_uint2(Allocation ain1) { 1916 return reduce_my_uint2(ain1, null); 1917 } 1918 1919 // ain1 = "int val" 1920 public result_int reduce_my_uint2(Allocation ain1, Script.LaunchOptions sc) { 1921 // check ain1 1922 if (!ain1.getType().getElement().isCompatible(__I32)) { 1923 throw new RSRuntimeException("Type mismatch with I32!"); 1924 } 1925 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1926 aout.setAutoPadding(true); 1927 reduce(mExportReduceIdx_my_uint2, new Allocation[]{ain1}, aout, sc); 1928 return new result_int(aout); 1929 } 1930 1931 private final static int mExportReduceIdx_my_uint4 = 56; 1932 // in1 = "val" 1933 public result_int reduce_my_uint4(int[] in1) { 1934 // Verify that "in1" is non-null. 1935 if (in1 == null) { 1936 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1937 } 1938 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1939 ain1.setAutoPadding(true); 1940 ain1.copyFrom(in1); 1941 1942 result_int result = reduce_my_uint4(ain1, null); 1943 result.mTempIns = new Allocation[]{ain1}; 1944 return result; 1945 } 1946 1947 // ain1 = "int val" 1948 public result_int reduce_my_uint4(Allocation ain1) { 1949 return reduce_my_uint4(ain1, null); 1950 } 1951 1952 // ain1 = "int val" 1953 public result_int reduce_my_uint4(Allocation ain1, Script.LaunchOptions sc) { 1954 // check ain1 1955 if (!ain1.getType().getElement().isCompatible(__I32)) { 1956 throw new RSRuntimeException("Type mismatch with I32!"); 1957 } 1958 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1959 aout.setAutoPadding(true); 1960 reduce(mExportReduceIdx_my_uint4, new Allocation[]{ain1}, aout, sc); 1961 return new result_int(aout); 1962 } 1963 1964 private final static int mExportReduceIdx_my_array_uint = 57; 1965 // in1 = "val" 1966 public result_int reduce_my_array_uint(int[] in1) { 1967 // Verify that "in1" is non-null. 1968 if (in1 == null) { 1969 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 1970 } 1971 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 1972 ain1.setAutoPadding(true); 1973 ain1.copyFrom(in1); 1974 1975 result_int result = reduce_my_array_uint(ain1, null); 1976 result.mTempIns = new Allocation[]{ain1}; 1977 return result; 1978 } 1979 1980 // ain1 = "int val" 1981 public result_int reduce_my_array_uint(Allocation ain1) { 1982 return reduce_my_array_uint(ain1, null); 1983 } 1984 1985 // ain1 = "int val" 1986 public result_int reduce_my_array_uint(Allocation ain1, Script.LaunchOptions sc) { 1987 // check ain1 1988 if (!ain1.getType().getElement().isCompatible(__I32)) { 1989 throw new RSRuntimeException("Type mismatch with I32!"); 1990 } 1991 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 1992 aout.setAutoPadding(true); 1993 reduce(mExportReduceIdx_my_array_uint, new Allocation[]{ain1}, aout, sc); 1994 return new result_int(aout); 1995 } 1996 1997 private final static int mExportReduceIdx_my_array_uint2 = 58; 1998 // in1 = "val" 1999 public result_int reduce_my_array_uint2(int[] in1) { 2000 // Verify that "in1" is non-null. 2001 if (in1 == null) { 2002 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2003 } 2004 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2005 ain1.setAutoPadding(true); 2006 ain1.copyFrom(in1); 2007 2008 result_int result = reduce_my_array_uint2(ain1, null); 2009 result.mTempIns = new Allocation[]{ain1}; 2010 return result; 2011 } 2012 2013 // ain1 = "int val" 2014 public result_int reduce_my_array_uint2(Allocation ain1) { 2015 return reduce_my_array_uint2(ain1, null); 2016 } 2017 2018 // ain1 = "int val" 2019 public result_int reduce_my_array_uint2(Allocation ain1, Script.LaunchOptions sc) { 2020 // check ain1 2021 if (!ain1.getType().getElement().isCompatible(__I32)) { 2022 throw new RSRuntimeException("Type mismatch with I32!"); 2023 } 2024 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2025 aout.setAutoPadding(true); 2026 reduce(mExportReduceIdx_my_array_uint2, new Allocation[]{ain1}, aout, sc); 2027 return new result_int(aout); 2028 } 2029 2030 private final static int mExportReduceIdx_my_array_uint4 = 59; 2031 // in1 = "val" 2032 public result_int reduce_my_array_uint4(int[] in1) { 2033 // Verify that "in1" is non-null. 2034 if (in1 == null) { 2035 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2036 } 2037 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2038 ain1.setAutoPadding(true); 2039 ain1.copyFrom(in1); 2040 2041 result_int result = reduce_my_array_uint4(ain1, null); 2042 result.mTempIns = new Allocation[]{ain1}; 2043 return result; 2044 } 2045 2046 // ain1 = "int val" 2047 public result_int reduce_my_array_uint4(Allocation ain1) { 2048 return reduce_my_array_uint4(ain1, null); 2049 } 2050 2051 // ain1 = "int val" 2052 public result_int reduce_my_array_uint4(Allocation ain1, Script.LaunchOptions sc) { 2053 // check ain1 2054 if (!ain1.getType().getElement().isCompatible(__I32)) { 2055 throw new RSRuntimeException("Type mismatch with I32!"); 2056 } 2057 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2058 aout.setAutoPadding(true); 2059 reduce(mExportReduceIdx_my_array_uint4, new Allocation[]{ain1}, aout, sc); 2060 return new result_int(aout); 2061 } 2062 2063 private final static int mExportReduceIdx_my_ulong = 60; 2064 // in1 = "val" 2065 public result_int reduce_my_ulong(int[] in1) { 2066 // Verify that "in1" is non-null. 2067 if (in1 == null) { 2068 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2069 } 2070 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2071 ain1.setAutoPadding(true); 2072 ain1.copyFrom(in1); 2073 2074 result_int result = reduce_my_ulong(ain1, null); 2075 result.mTempIns = new Allocation[]{ain1}; 2076 return result; 2077 } 2078 2079 // ain1 = "int val" 2080 public result_int reduce_my_ulong(Allocation ain1) { 2081 return reduce_my_ulong(ain1, null); 2082 } 2083 2084 // ain1 = "int val" 2085 public result_int reduce_my_ulong(Allocation ain1, Script.LaunchOptions sc) { 2086 // check ain1 2087 if (!ain1.getType().getElement().isCompatible(__I32)) { 2088 throw new RSRuntimeException("Type mismatch with I32!"); 2089 } 2090 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2091 aout.setAutoPadding(true); 2092 reduce(mExportReduceIdx_my_ulong, new Allocation[]{ain1}, aout, sc); 2093 return new result_int(aout); 2094 } 2095 2096 private final static int mExportReduceIdx_my_ulong2 = 61; 2097 // in1 = "val" 2098 public result_int reduce_my_ulong2(int[] in1) { 2099 // Verify that "in1" is non-null. 2100 if (in1 == null) { 2101 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2102 } 2103 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2104 ain1.setAutoPadding(true); 2105 ain1.copyFrom(in1); 2106 2107 result_int result = reduce_my_ulong2(ain1, null); 2108 result.mTempIns = new Allocation[]{ain1}; 2109 return result; 2110 } 2111 2112 // ain1 = "int val" 2113 public result_int reduce_my_ulong2(Allocation ain1) { 2114 return reduce_my_ulong2(ain1, null); 2115 } 2116 2117 // ain1 = "int val" 2118 public result_int reduce_my_ulong2(Allocation ain1, Script.LaunchOptions sc) { 2119 // check ain1 2120 if (!ain1.getType().getElement().isCompatible(__I32)) { 2121 throw new RSRuntimeException("Type mismatch with I32!"); 2122 } 2123 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2124 aout.setAutoPadding(true); 2125 reduce(mExportReduceIdx_my_ulong2, new Allocation[]{ain1}, aout, sc); 2126 return new result_int(aout); 2127 } 2128 2129 private final static int mExportReduceIdx_my_ulong4 = 62; 2130 // in1 = "val" 2131 public result_int reduce_my_ulong4(int[] in1) { 2132 // Verify that "in1" is non-null. 2133 if (in1 == null) { 2134 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2135 } 2136 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2137 ain1.setAutoPadding(true); 2138 ain1.copyFrom(in1); 2139 2140 result_int result = reduce_my_ulong4(ain1, null); 2141 result.mTempIns = new Allocation[]{ain1}; 2142 return result; 2143 } 2144 2145 // ain1 = "int val" 2146 public result_int reduce_my_ulong4(Allocation ain1) { 2147 return reduce_my_ulong4(ain1, null); 2148 } 2149 2150 // ain1 = "int val" 2151 public result_int reduce_my_ulong4(Allocation ain1, Script.LaunchOptions sc) { 2152 // check ain1 2153 if (!ain1.getType().getElement().isCompatible(__I32)) { 2154 throw new RSRuntimeException("Type mismatch with I32!"); 2155 } 2156 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2157 aout.setAutoPadding(true); 2158 reduce(mExportReduceIdx_my_ulong4, new Allocation[]{ain1}, aout, sc); 2159 return new result_int(aout); 2160 } 2161 2162 private final static int mExportReduceIdx_my_array_ulong = 63; 2163 // in1 = "val" 2164 public result_int reduce_my_array_ulong(int[] in1) { 2165 // Verify that "in1" is non-null. 2166 if (in1 == null) { 2167 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2168 } 2169 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2170 ain1.setAutoPadding(true); 2171 ain1.copyFrom(in1); 2172 2173 result_int result = reduce_my_array_ulong(ain1, null); 2174 result.mTempIns = new Allocation[]{ain1}; 2175 return result; 2176 } 2177 2178 // ain1 = "int val" 2179 public result_int reduce_my_array_ulong(Allocation ain1) { 2180 return reduce_my_array_ulong(ain1, null); 2181 } 2182 2183 // ain1 = "int val" 2184 public result_int reduce_my_array_ulong(Allocation ain1, Script.LaunchOptions sc) { 2185 // check ain1 2186 if (!ain1.getType().getElement().isCompatible(__I32)) { 2187 throw new RSRuntimeException("Type mismatch with I32!"); 2188 } 2189 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2190 aout.setAutoPadding(true); 2191 reduce(mExportReduceIdx_my_array_ulong, new Allocation[]{ain1}, aout, sc); 2192 return new result_int(aout); 2193 } 2194 2195 private final static int mExportReduceIdx_my_array_ulong2 = 64; 2196 // in1 = "val" 2197 public result_int reduce_my_array_ulong2(int[] in1) { 2198 // Verify that "in1" is non-null. 2199 if (in1 == null) { 2200 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2201 } 2202 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2203 ain1.setAutoPadding(true); 2204 ain1.copyFrom(in1); 2205 2206 result_int result = reduce_my_array_ulong2(ain1, null); 2207 result.mTempIns = new Allocation[]{ain1}; 2208 return result; 2209 } 2210 2211 // ain1 = "int val" 2212 public result_int reduce_my_array_ulong2(Allocation ain1) { 2213 return reduce_my_array_ulong2(ain1, null); 2214 } 2215 2216 // ain1 = "int val" 2217 public result_int reduce_my_array_ulong2(Allocation ain1, Script.LaunchOptions sc) { 2218 // check ain1 2219 if (!ain1.getType().getElement().isCompatible(__I32)) { 2220 throw new RSRuntimeException("Type mismatch with I32!"); 2221 } 2222 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2223 aout.setAutoPadding(true); 2224 reduce(mExportReduceIdx_my_array_ulong2, new Allocation[]{ain1}, aout, sc); 2225 return new result_int(aout); 2226 } 2227 2228 private final static int mExportReduceIdx_my_array_ulong4 = 65; 2229 // in1 = "val" 2230 public result_int reduce_my_array_ulong4(int[] in1) { 2231 // Verify that "in1" is non-null. 2232 if (in1 == null) { 2233 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2234 } 2235 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2236 ain1.setAutoPadding(true); 2237 ain1.copyFrom(in1); 2238 2239 result_int result = reduce_my_array_ulong4(ain1, null); 2240 result.mTempIns = new Allocation[]{ain1}; 2241 return result; 2242 } 2243 2244 // ain1 = "int val" 2245 public result_int reduce_my_array_ulong4(Allocation ain1) { 2246 return reduce_my_array_ulong4(ain1, null); 2247 } 2248 2249 // ain1 = "int val" 2250 public result_int reduce_my_array_ulong4(Allocation ain1, Script.LaunchOptions sc) { 2251 // check ain1 2252 if (!ain1.getType().getElement().isCompatible(__I32)) { 2253 throw new RSRuntimeException("Type mismatch with I32!"); 2254 } 2255 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2256 aout.setAutoPadding(true); 2257 reduce(mExportReduceIdx_my_array_ulong4, new Allocation[]{ain1}, aout, sc); 2258 return new result_int(aout); 2259 } 2260 2261 private final static int mExportReduceIdx_my_bool = 66; 2262 // in1 = "val" 2263 public result_int reduce_my_bool(int[] in1) { 2264 // Verify that "in1" is non-null. 2265 if (in1 == null) { 2266 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2267 } 2268 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2269 ain1.setAutoPadding(true); 2270 ain1.copyFrom(in1); 2271 2272 result_int result = reduce_my_bool(ain1, null); 2273 result.mTempIns = new Allocation[]{ain1}; 2274 return result; 2275 } 2276 2277 // ain1 = "int val" 2278 public result_int reduce_my_bool(Allocation ain1) { 2279 return reduce_my_bool(ain1, null); 2280 } 2281 2282 // ain1 = "int val" 2283 public result_int reduce_my_bool(Allocation ain1, Script.LaunchOptions sc) { 2284 // check ain1 2285 if (!ain1.getType().getElement().isCompatible(__I32)) { 2286 throw new RSRuntimeException("Type mismatch with I32!"); 2287 } 2288 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2289 aout.setAutoPadding(true); 2290 reduce(mExportReduceIdx_my_bool, new Allocation[]{ain1}, aout, sc); 2291 return new result_int(aout); 2292 } 2293 2294 private final static int mExportReduceIdx_my_array_bool = 67; 2295 // in1 = "val" 2296 public result_int reduce_my_array_bool(int[] in1) { 2297 // Verify that "in1" is non-null. 2298 if (in1 == null) { 2299 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2300 } 2301 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2302 ain1.setAutoPadding(true); 2303 ain1.copyFrom(in1); 2304 2305 result_int result = reduce_my_array_bool(ain1, null); 2306 result.mTempIns = new Allocation[]{ain1}; 2307 return result; 2308 } 2309 2310 // ain1 = "int val" 2311 public result_int reduce_my_array_bool(Allocation ain1) { 2312 return reduce_my_array_bool(ain1, null); 2313 } 2314 2315 // ain1 = "int val" 2316 public result_int reduce_my_array_bool(Allocation ain1, Script.LaunchOptions sc) { 2317 // check ain1 2318 if (!ain1.getType().getElement().isCompatible(__I32)) { 2319 throw new RSRuntimeException("Type mismatch with I32!"); 2320 } 2321 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2322 aout.setAutoPadding(true); 2323 reduce(mExportReduceIdx_my_array_bool, new Allocation[]{ain1}, aout, sc); 2324 return new result_int(aout); 2325 } 2326 2327 private final static int mExportReduceIdx_my_rs_matrix2x2 = 68; 2328 // in1 = "val" 2329 public result_int reduce_my_rs_matrix2x2(int[] in1) { 2330 // Verify that "in1" is non-null. 2331 if (in1 == null) { 2332 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2333 } 2334 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2335 ain1.setAutoPadding(true); 2336 ain1.copyFrom(in1); 2337 2338 result_int result = reduce_my_rs_matrix2x2(ain1, null); 2339 result.mTempIns = new Allocation[]{ain1}; 2340 return result; 2341 } 2342 2343 // ain1 = "int val" 2344 public result_int reduce_my_rs_matrix2x2(Allocation ain1) { 2345 return reduce_my_rs_matrix2x2(ain1, null); 2346 } 2347 2348 // ain1 = "int val" 2349 public result_int reduce_my_rs_matrix2x2(Allocation ain1, Script.LaunchOptions sc) { 2350 // check ain1 2351 if (!ain1.getType().getElement().isCompatible(__I32)) { 2352 throw new RSRuntimeException("Type mismatch with I32!"); 2353 } 2354 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2355 aout.setAutoPadding(true); 2356 reduce(mExportReduceIdx_my_rs_matrix2x2, new Allocation[]{ain1}, aout, sc); 2357 return new result_int(aout); 2358 } 2359 2360 private final static int mExportReduceIdx_my_array_rs_matrix2x2 = 69; 2361 // in1 = "val" 2362 public result_int reduce_my_array_rs_matrix2x2(int[] in1) { 2363 // Verify that "in1" is non-null. 2364 if (in1 == null) { 2365 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2366 } 2367 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2368 ain1.setAutoPadding(true); 2369 ain1.copyFrom(in1); 2370 2371 result_int result = reduce_my_array_rs_matrix2x2(ain1, null); 2372 result.mTempIns = new Allocation[]{ain1}; 2373 return result; 2374 } 2375 2376 // ain1 = "int val" 2377 public result_int reduce_my_array_rs_matrix2x2(Allocation ain1) { 2378 return reduce_my_array_rs_matrix2x2(ain1, null); 2379 } 2380 2381 // ain1 = "int val" 2382 public result_int reduce_my_array_rs_matrix2x2(Allocation ain1, Script.LaunchOptions sc) { 2383 // check ain1 2384 if (!ain1.getType().getElement().isCompatible(__I32)) { 2385 throw new RSRuntimeException("Type mismatch with I32!"); 2386 } 2387 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2388 aout.setAutoPadding(true); 2389 reduce(mExportReduceIdx_my_array_rs_matrix2x2, new Allocation[]{ain1}, aout, sc); 2390 return new result_int(aout); 2391 } 2392 2393 private final static int mExportReduceIdx_my_rs_matrix3x3 = 70; 2394 // in1 = "val" 2395 public result_int reduce_my_rs_matrix3x3(int[] in1) { 2396 // Verify that "in1" is non-null. 2397 if (in1 == null) { 2398 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2399 } 2400 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2401 ain1.setAutoPadding(true); 2402 ain1.copyFrom(in1); 2403 2404 result_int result = reduce_my_rs_matrix3x3(ain1, null); 2405 result.mTempIns = new Allocation[]{ain1}; 2406 return result; 2407 } 2408 2409 // ain1 = "int val" 2410 public result_int reduce_my_rs_matrix3x3(Allocation ain1) { 2411 return reduce_my_rs_matrix3x3(ain1, null); 2412 } 2413 2414 // ain1 = "int val" 2415 public result_int reduce_my_rs_matrix3x3(Allocation ain1, Script.LaunchOptions sc) { 2416 // check ain1 2417 if (!ain1.getType().getElement().isCompatible(__I32)) { 2418 throw new RSRuntimeException("Type mismatch with I32!"); 2419 } 2420 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2421 aout.setAutoPadding(true); 2422 reduce(mExportReduceIdx_my_rs_matrix3x3, new Allocation[]{ain1}, aout, sc); 2423 return new result_int(aout); 2424 } 2425 2426 private final static int mExportReduceIdx_my_array_rs_matrix3x3 = 71; 2427 // in1 = "val" 2428 public result_int reduce_my_array_rs_matrix3x3(int[] in1) { 2429 // Verify that "in1" is non-null. 2430 if (in1 == null) { 2431 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2432 } 2433 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2434 ain1.setAutoPadding(true); 2435 ain1.copyFrom(in1); 2436 2437 result_int result = reduce_my_array_rs_matrix3x3(ain1, null); 2438 result.mTempIns = new Allocation[]{ain1}; 2439 return result; 2440 } 2441 2442 // ain1 = "int val" 2443 public result_int reduce_my_array_rs_matrix3x3(Allocation ain1) { 2444 return reduce_my_array_rs_matrix3x3(ain1, null); 2445 } 2446 2447 // ain1 = "int val" 2448 public result_int reduce_my_array_rs_matrix3x3(Allocation ain1, Script.LaunchOptions sc) { 2449 // check ain1 2450 if (!ain1.getType().getElement().isCompatible(__I32)) { 2451 throw new RSRuntimeException("Type mismatch with I32!"); 2452 } 2453 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2454 aout.setAutoPadding(true); 2455 reduce(mExportReduceIdx_my_array_rs_matrix3x3, new Allocation[]{ain1}, aout, sc); 2456 return new result_int(aout); 2457 } 2458 2459 private final static int mExportReduceIdx_my_rs_matrix4x4 = 72; 2460 // in1 = "val" 2461 public result_int reduce_my_rs_matrix4x4(int[] in1) { 2462 // Verify that "in1" is non-null. 2463 if (in1 == null) { 2464 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2465 } 2466 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2467 ain1.setAutoPadding(true); 2468 ain1.copyFrom(in1); 2469 2470 result_int result = reduce_my_rs_matrix4x4(ain1, null); 2471 result.mTempIns = new Allocation[]{ain1}; 2472 return result; 2473 } 2474 2475 // ain1 = "int val" 2476 public result_int reduce_my_rs_matrix4x4(Allocation ain1) { 2477 return reduce_my_rs_matrix4x4(ain1, null); 2478 } 2479 2480 // ain1 = "int val" 2481 public result_int reduce_my_rs_matrix4x4(Allocation ain1, Script.LaunchOptions sc) { 2482 // check ain1 2483 if (!ain1.getType().getElement().isCompatible(__I32)) { 2484 throw new RSRuntimeException("Type mismatch with I32!"); 2485 } 2486 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2487 aout.setAutoPadding(true); 2488 reduce(mExportReduceIdx_my_rs_matrix4x4, new Allocation[]{ain1}, aout, sc); 2489 return new result_int(aout); 2490 } 2491 2492 private final static int mExportReduceIdx_my_array_rs_matrix4x4 = 73; 2493 // in1 = "val" 2494 public result_int reduce_my_array_rs_matrix4x4(int[] in1) { 2495 // Verify that "in1" is non-null. 2496 if (in1 == null) { 2497 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2498 } 2499 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2500 ain1.setAutoPadding(true); 2501 ain1.copyFrom(in1); 2502 2503 result_int result = reduce_my_array_rs_matrix4x4(ain1, null); 2504 result.mTempIns = new Allocation[]{ain1}; 2505 return result; 2506 } 2507 2508 // ain1 = "int val" 2509 public result_int reduce_my_array_rs_matrix4x4(Allocation ain1) { 2510 return reduce_my_array_rs_matrix4x4(ain1, null); 2511 } 2512 2513 // ain1 = "int val" 2514 public result_int reduce_my_array_rs_matrix4x4(Allocation ain1, Script.LaunchOptions sc) { 2515 // check ain1 2516 if (!ain1.getType().getElement().isCompatible(__I32)) { 2517 throw new RSRuntimeException("Type mismatch with I32!"); 2518 } 2519 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2520 aout.setAutoPadding(true); 2521 reduce(mExportReduceIdx_my_array_rs_matrix4x4, new Allocation[]{ain1}, aout, sc); 2522 return new result_int(aout); 2523 } 2524 2525 private final static int mExportReduceIdx_my_rs_for_each_strategy_t = 74; 2526 // in1 = "val" 2527 public result_int reduce_my_rs_for_each_strategy_t(int[] in1) { 2528 // Verify that "in1" is non-null. 2529 if (in1 == null) { 2530 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2531 } 2532 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2533 ain1.setAutoPadding(true); 2534 ain1.copyFrom(in1); 2535 2536 result_int result = reduce_my_rs_for_each_strategy_t(ain1, null); 2537 result.mTempIns = new Allocation[]{ain1}; 2538 return result; 2539 } 2540 2541 // ain1 = "int val" 2542 public result_int reduce_my_rs_for_each_strategy_t(Allocation ain1) { 2543 return reduce_my_rs_for_each_strategy_t(ain1, null); 2544 } 2545 2546 // ain1 = "int val" 2547 public result_int reduce_my_rs_for_each_strategy_t(Allocation ain1, Script.LaunchOptions sc) { 2548 // check ain1 2549 if (!ain1.getType().getElement().isCompatible(__I32)) { 2550 throw new RSRuntimeException("Type mismatch with I32!"); 2551 } 2552 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2553 aout.setAutoPadding(true); 2554 reduce(mExportReduceIdx_my_rs_for_each_strategy_t, new Allocation[]{ain1}, aout, sc); 2555 return new result_int(aout); 2556 } 2557 2558 private final static int mExportReduceIdx_my_array_rs_for_each_strategy_t = 75; 2559 // in1 = "val" 2560 public result_int reduce_my_array_rs_for_each_strategy_t(int[] in1) { 2561 // Verify that "in1" is non-null. 2562 if (in1 == null) { 2563 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2564 } 2565 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2566 ain1.setAutoPadding(true); 2567 ain1.copyFrom(in1); 2568 2569 result_int result = reduce_my_array_rs_for_each_strategy_t(ain1, null); 2570 result.mTempIns = new Allocation[]{ain1}; 2571 return result; 2572 } 2573 2574 // ain1 = "int val" 2575 public result_int reduce_my_array_rs_for_each_strategy_t(Allocation ain1) { 2576 return reduce_my_array_rs_for_each_strategy_t(ain1, null); 2577 } 2578 2579 // ain1 = "int val" 2580 public result_int reduce_my_array_rs_for_each_strategy_t(Allocation ain1, Script.LaunchOptions sc) { 2581 // check ain1 2582 if (!ain1.getType().getElement().isCompatible(__I32)) { 2583 throw new RSRuntimeException("Type mismatch with I32!"); 2584 } 2585 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2586 aout.setAutoPadding(true); 2587 reduce(mExportReduceIdx_my_array_rs_for_each_strategy_t, new Allocation[]{ain1}, aout, sc); 2588 return new result_int(aout); 2589 } 2590 2591 private final static int mExportReduceIdx_my_rs_script_call_t = 76; 2592 // in1 = "val" 2593 public result_int reduce_my_rs_script_call_t(int[] in1) { 2594 // Verify that "in1" is non-null. 2595 if (in1 == null) { 2596 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2597 } 2598 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2599 ain1.setAutoPadding(true); 2600 ain1.copyFrom(in1); 2601 2602 result_int result = reduce_my_rs_script_call_t(ain1, null); 2603 result.mTempIns = new Allocation[]{ain1}; 2604 return result; 2605 } 2606 2607 // ain1 = "int val" 2608 public result_int reduce_my_rs_script_call_t(Allocation ain1) { 2609 return reduce_my_rs_script_call_t(ain1, null); 2610 } 2611 2612 // ain1 = "int val" 2613 public result_int reduce_my_rs_script_call_t(Allocation ain1, Script.LaunchOptions sc) { 2614 // check ain1 2615 if (!ain1.getType().getElement().isCompatible(__I32)) { 2616 throw new RSRuntimeException("Type mismatch with I32!"); 2617 } 2618 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2619 aout.setAutoPadding(true); 2620 reduce(mExportReduceIdx_my_rs_script_call_t, new Allocation[]{ain1}, aout, sc); 2621 return new result_int(aout); 2622 } 2623 2624 private final static int mExportReduceIdx_my_array_rs_script_call_t = 77; 2625 // in1 = "val" 2626 public result_int reduce_my_array_rs_script_call_t(int[] in1) { 2627 // Verify that "in1" is non-null. 2628 if (in1 == null) { 2629 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2630 } 2631 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2632 ain1.setAutoPadding(true); 2633 ain1.copyFrom(in1); 2634 2635 result_int result = reduce_my_array_rs_script_call_t(ain1, null); 2636 result.mTempIns = new Allocation[]{ain1}; 2637 return result; 2638 } 2639 2640 // ain1 = "int val" 2641 public result_int reduce_my_array_rs_script_call_t(Allocation ain1) { 2642 return reduce_my_array_rs_script_call_t(ain1, null); 2643 } 2644 2645 // ain1 = "int val" 2646 public result_int reduce_my_array_rs_script_call_t(Allocation ain1, Script.LaunchOptions sc) { 2647 // check ain1 2648 if (!ain1.getType().getElement().isCompatible(__I32)) { 2649 throw new RSRuntimeException("Type mismatch with I32!"); 2650 } 2651 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2652 aout.setAutoPadding(true); 2653 reduce(mExportReduceIdx_my_array_rs_script_call_t, new Allocation[]{ain1}, aout, sc); 2654 return new result_int(aout); 2655 } 2656 2657 private final static int mExportReduceIdx_my_rs_time_t = 78; 2658 // in1 = "val" 2659 public result_int reduce_my_rs_time_t(int[] in1) { 2660 // Verify that "in1" is non-null. 2661 if (in1 == null) { 2662 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2663 } 2664 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2665 ain1.setAutoPadding(true); 2666 ain1.copyFrom(in1); 2667 2668 result_int result = reduce_my_rs_time_t(ain1, null); 2669 result.mTempIns = new Allocation[]{ain1}; 2670 return result; 2671 } 2672 2673 // ain1 = "int val" 2674 public result_int reduce_my_rs_time_t(Allocation ain1) { 2675 return reduce_my_rs_time_t(ain1, null); 2676 } 2677 2678 // ain1 = "int val" 2679 public result_int reduce_my_rs_time_t(Allocation ain1, Script.LaunchOptions sc) { 2680 // check ain1 2681 if (!ain1.getType().getElement().isCompatible(__I32)) { 2682 throw new RSRuntimeException("Type mismatch with I32!"); 2683 } 2684 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2685 aout.setAutoPadding(true); 2686 reduce(mExportReduceIdx_my_rs_time_t, new Allocation[]{ain1}, aout, sc); 2687 return new result_int(aout); 2688 } 2689 2690 private final static int mExportReduceIdx_my_array_rs_time_t = 79; 2691 // in1 = "val" 2692 public result_int reduce_my_array_rs_time_t(int[] in1) { 2693 // Verify that "in1" is non-null. 2694 if (in1 == null) { 2695 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2696 } 2697 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2698 ain1.setAutoPadding(true); 2699 ain1.copyFrom(in1); 2700 2701 result_int result = reduce_my_array_rs_time_t(ain1, null); 2702 result.mTempIns = new Allocation[]{ain1}; 2703 return result; 2704 } 2705 2706 // ain1 = "int val" 2707 public result_int reduce_my_array_rs_time_t(Allocation ain1) { 2708 return reduce_my_array_rs_time_t(ain1, null); 2709 } 2710 2711 // ain1 = "int val" 2712 public result_int reduce_my_array_rs_time_t(Allocation ain1, Script.LaunchOptions sc) { 2713 // check ain1 2714 if (!ain1.getType().getElement().isCompatible(__I32)) { 2715 throw new RSRuntimeException("Type mismatch with I32!"); 2716 } 2717 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2718 aout.setAutoPadding(true); 2719 reduce(mExportReduceIdx_my_array_rs_time_t, new Allocation[]{ain1}, aout, sc); 2720 return new result_int(aout); 2721 } 2722 2723 private final static int mExportReduceIdx_my_rs_tm = 80; 2724 // in1 = "val" 2725 public result_int reduce_my_rs_tm(int[] in1) { 2726 // Verify that "in1" is non-null. 2727 if (in1 == null) { 2728 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2729 } 2730 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2731 ain1.setAutoPadding(true); 2732 ain1.copyFrom(in1); 2733 2734 result_int result = reduce_my_rs_tm(ain1, null); 2735 result.mTempIns = new Allocation[]{ain1}; 2736 return result; 2737 } 2738 2739 // ain1 = "int val" 2740 public result_int reduce_my_rs_tm(Allocation ain1) { 2741 return reduce_my_rs_tm(ain1, null); 2742 } 2743 2744 // ain1 = "int val" 2745 public result_int reduce_my_rs_tm(Allocation ain1, Script.LaunchOptions sc) { 2746 // check ain1 2747 if (!ain1.getType().getElement().isCompatible(__I32)) { 2748 throw new RSRuntimeException("Type mismatch with I32!"); 2749 } 2750 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2751 aout.setAutoPadding(true); 2752 reduce(mExportReduceIdx_my_rs_tm, new Allocation[]{ain1}, aout, sc); 2753 return new result_int(aout); 2754 } 2755 2756 private final static int mExportReduceIdx_my_array_rs_tm = 81; 2757 // in1 = "val" 2758 public result_int reduce_my_array_rs_tm(int[] in1) { 2759 // Verify that "in1" is non-null. 2760 if (in1 == null) { 2761 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2762 } 2763 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2764 ain1.setAutoPadding(true); 2765 ain1.copyFrom(in1); 2766 2767 result_int result = reduce_my_array_rs_tm(ain1, null); 2768 result.mTempIns = new Allocation[]{ain1}; 2769 return result; 2770 } 2771 2772 // ain1 = "int val" 2773 public result_int reduce_my_array_rs_tm(Allocation ain1) { 2774 return reduce_my_array_rs_tm(ain1, null); 2775 } 2776 2777 // ain1 = "int val" 2778 public result_int reduce_my_array_rs_tm(Allocation ain1, Script.LaunchOptions sc) { 2779 // check ain1 2780 if (!ain1.getType().getElement().isCompatible(__I32)) { 2781 throw new RSRuntimeException("Type mismatch with I32!"); 2782 } 2783 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2784 aout.setAutoPadding(true); 2785 reduce(mExportReduceIdx_my_array_rs_tm, new Allocation[]{ain1}, aout, sc); 2786 return new result_int(aout); 2787 } 2788 2789 private final static int mExportReduceIdx_my_MyEnum = 82; 2790 // in1 = "val" 2791 public result_int reduce_my_MyEnum(int[] in1) { 2792 // Verify that "in1" is non-null. 2793 if (in1 == null) { 2794 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2795 } 2796 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2797 ain1.setAutoPadding(true); 2798 ain1.copyFrom(in1); 2799 2800 result_int result = reduce_my_MyEnum(ain1, null); 2801 result.mTempIns = new Allocation[]{ain1}; 2802 return result; 2803 } 2804 2805 // ain1 = "int val" 2806 public result_int reduce_my_MyEnum(Allocation ain1) { 2807 return reduce_my_MyEnum(ain1, null); 2808 } 2809 2810 // ain1 = "int val" 2811 public result_int reduce_my_MyEnum(Allocation ain1, Script.LaunchOptions sc) { 2812 // check ain1 2813 if (!ain1.getType().getElement().isCompatible(__I32)) { 2814 throw new RSRuntimeException("Type mismatch with I32!"); 2815 } 2816 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2817 aout.setAutoPadding(true); 2818 reduce(mExportReduceIdx_my_MyEnum, new Allocation[]{ain1}, aout, sc); 2819 return new result_int(aout); 2820 } 2821 2822 private final static int mExportReduceIdx_my_array_MyEnum = 83; 2823 // in1 = "val" 2824 public result_int reduce_my_array_MyEnum(int[] in1) { 2825 // Verify that "in1" is non-null. 2826 if (in1 == null) { 2827 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2828 } 2829 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2830 ain1.setAutoPadding(true); 2831 ain1.copyFrom(in1); 2832 2833 result_int result = reduce_my_array_MyEnum(ain1, null); 2834 result.mTempIns = new Allocation[]{ain1}; 2835 return result; 2836 } 2837 2838 // ain1 = "int val" 2839 public result_int reduce_my_array_MyEnum(Allocation ain1) { 2840 return reduce_my_array_MyEnum(ain1, null); 2841 } 2842 2843 // ain1 = "int val" 2844 public result_int reduce_my_array_MyEnum(Allocation ain1, Script.LaunchOptions sc) { 2845 // check ain1 2846 if (!ain1.getType().getElement().isCompatible(__I32)) { 2847 throw new RSRuntimeException("Type mismatch with I32!"); 2848 } 2849 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2850 aout.setAutoPadding(true); 2851 reduce(mExportReduceIdx_my_array_MyEnum, new Allocation[]{ain1}, aout, sc); 2852 return new result_int(aout); 2853 } 2854 2855 private final static int mExportReduceIdx_my_MyPtrArray = 84; 2856 // in1 = "val" 2857 public result_int reduce_my_MyPtrArray(int[] in1) { 2858 // Verify that "in1" is non-null. 2859 if (in1 == null) { 2860 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2861 } 2862 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2863 ain1.setAutoPadding(true); 2864 ain1.copyFrom(in1); 2865 2866 result_int result = reduce_my_MyPtrArray(ain1, null); 2867 result.mTempIns = new Allocation[]{ain1}; 2868 return result; 2869 } 2870 2871 // ain1 = "int val" 2872 public result_int reduce_my_MyPtrArray(Allocation ain1) { 2873 return reduce_my_MyPtrArray(ain1, null); 2874 } 2875 2876 // ain1 = "int val" 2877 public result_int reduce_my_MyPtrArray(Allocation ain1, Script.LaunchOptions sc) { 2878 // check ain1 2879 if (!ain1.getType().getElement().isCompatible(__I32)) { 2880 throw new RSRuntimeException("Type mismatch with I32!"); 2881 } 2882 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2883 aout.setAutoPadding(true); 2884 reduce(mExportReduceIdx_my_MyPtrArray, new Allocation[]{ain1}, aout, sc); 2885 return new result_int(aout); 2886 } 2887 2888 private final static int mExportReduceIdx_my_array_MyPtrArray = 85; 2889 // in1 = "val" 2890 public result_int reduce_my_array_MyPtrArray(int[] in1) { 2891 // Verify that "in1" is non-null. 2892 if (in1 == null) { 2893 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2894 } 2895 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2896 ain1.setAutoPadding(true); 2897 ain1.copyFrom(in1); 2898 2899 result_int result = reduce_my_array_MyPtrArray(ain1, null); 2900 result.mTempIns = new Allocation[]{ain1}; 2901 return result; 2902 } 2903 2904 // ain1 = "int val" 2905 public result_int reduce_my_array_MyPtrArray(Allocation ain1) { 2906 return reduce_my_array_MyPtrArray(ain1, null); 2907 } 2908 2909 // ain1 = "int val" 2910 public result_int reduce_my_array_MyPtrArray(Allocation ain1, Script.LaunchOptions sc) { 2911 // check ain1 2912 if (!ain1.getType().getElement().isCompatible(__I32)) { 2913 throw new RSRuntimeException("Type mismatch with I32!"); 2914 } 2915 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2916 aout.setAutoPadding(true); 2917 reduce(mExportReduceIdx_my_array_MyPtrArray, new Allocation[]{ain1}, aout, sc); 2918 return new result_int(aout); 2919 } 2920 2921 private final static int mExportReduceIdx_my_MyPtrFn = 86; 2922 // in1 = "val" 2923 public result_int reduce_my_MyPtrFn(int[] in1) { 2924 // Verify that "in1" is non-null. 2925 if (in1 == null) { 2926 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2927 } 2928 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2929 ain1.setAutoPadding(true); 2930 ain1.copyFrom(in1); 2931 2932 result_int result = reduce_my_MyPtrFn(ain1, null); 2933 result.mTempIns = new Allocation[]{ain1}; 2934 return result; 2935 } 2936 2937 // ain1 = "int val" 2938 public result_int reduce_my_MyPtrFn(Allocation ain1) { 2939 return reduce_my_MyPtrFn(ain1, null); 2940 } 2941 2942 // ain1 = "int val" 2943 public result_int reduce_my_MyPtrFn(Allocation ain1, Script.LaunchOptions sc) { 2944 // check ain1 2945 if (!ain1.getType().getElement().isCompatible(__I32)) { 2946 throw new RSRuntimeException("Type mismatch with I32!"); 2947 } 2948 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2949 aout.setAutoPadding(true); 2950 reduce(mExportReduceIdx_my_MyPtrFn, new Allocation[]{ain1}, aout, sc); 2951 return new result_int(aout); 2952 } 2953 2954 private final static int mExportReduceIdx_my_array_MyPtrFn = 87; 2955 // in1 = "val" 2956 public result_int reduce_my_array_MyPtrFn(int[] in1) { 2957 // Verify that "in1" is non-null. 2958 if (in1 == null) { 2959 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2960 } 2961 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2962 ain1.setAutoPadding(true); 2963 ain1.copyFrom(in1); 2964 2965 result_int result = reduce_my_array_MyPtrFn(ain1, null); 2966 result.mTempIns = new Allocation[]{ain1}; 2967 return result; 2968 } 2969 2970 // ain1 = "int val" 2971 public result_int reduce_my_array_MyPtrFn(Allocation ain1) { 2972 return reduce_my_array_MyPtrFn(ain1, null); 2973 } 2974 2975 // ain1 = "int val" 2976 public result_int reduce_my_array_MyPtrFn(Allocation ain1, Script.LaunchOptions sc) { 2977 // check ain1 2978 if (!ain1.getType().getElement().isCompatible(__I32)) { 2979 throw new RSRuntimeException("Type mismatch with I32!"); 2980 } 2981 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 2982 aout.setAutoPadding(true); 2983 reduce(mExportReduceIdx_my_array_MyPtrFn, new Allocation[]{ain1}, aout, sc); 2984 return new result_int(aout); 2985 } 2986 2987 private final static int mExportReduceIdx_my_MyPtrIncomplete = 88; 2988 // in1 = "val" 2989 public result_int reduce_my_MyPtrIncomplete(int[] in1) { 2990 // Verify that "in1" is non-null. 2991 if (in1 == null) { 2992 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 2993 } 2994 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 2995 ain1.setAutoPadding(true); 2996 ain1.copyFrom(in1); 2997 2998 result_int result = reduce_my_MyPtrIncomplete(ain1, null); 2999 result.mTempIns = new Allocation[]{ain1}; 3000 return result; 3001 } 3002 3003 // ain1 = "int val" 3004 public result_int reduce_my_MyPtrIncomplete(Allocation ain1) { 3005 return reduce_my_MyPtrIncomplete(ain1, null); 3006 } 3007 3008 // ain1 = "int val" 3009 public result_int reduce_my_MyPtrIncomplete(Allocation ain1, Script.LaunchOptions sc) { 3010 // check ain1 3011 if (!ain1.getType().getElement().isCompatible(__I32)) { 3012 throw new RSRuntimeException("Type mismatch with I32!"); 3013 } 3014 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3015 aout.setAutoPadding(true); 3016 reduce(mExportReduceIdx_my_MyPtrIncomplete, new Allocation[]{ain1}, aout, sc); 3017 return new result_int(aout); 3018 } 3019 3020 private final static int mExportReduceIdx_my_array_MyPtrIncomplete = 89; 3021 // in1 = "val" 3022 public result_int reduce_my_array_MyPtrIncomplete(int[] in1) { 3023 // Verify that "in1" is non-null. 3024 if (in1 == null) { 3025 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3026 } 3027 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3028 ain1.setAutoPadding(true); 3029 ain1.copyFrom(in1); 3030 3031 result_int result = reduce_my_array_MyPtrIncomplete(ain1, null); 3032 result.mTempIns = new Allocation[]{ain1}; 3033 return result; 3034 } 3035 3036 // ain1 = "int val" 3037 public result_int reduce_my_array_MyPtrIncomplete(Allocation ain1) { 3038 return reduce_my_array_MyPtrIncomplete(ain1, null); 3039 } 3040 3041 // ain1 = "int val" 3042 public result_int reduce_my_array_MyPtrIncomplete(Allocation ain1, Script.LaunchOptions sc) { 3043 // check ain1 3044 if (!ain1.getType().getElement().isCompatible(__I32)) { 3045 throw new RSRuntimeException("Type mismatch with I32!"); 3046 } 3047 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3048 aout.setAutoPadding(true); 3049 reduce(mExportReduceIdx_my_array_MyPtrIncomplete, new Allocation[]{ain1}, aout, sc); 3050 return new result_int(aout); 3051 } 3052 3053 private final static int mExportReduceIdx_my_MyPtrShort = 90; 3054 // in1 = "val" 3055 public result_int reduce_my_MyPtrShort(int[] in1) { 3056 // Verify that "in1" is non-null. 3057 if (in1 == null) { 3058 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3059 } 3060 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3061 ain1.setAutoPadding(true); 3062 ain1.copyFrom(in1); 3063 3064 result_int result = reduce_my_MyPtrShort(ain1, null); 3065 result.mTempIns = new Allocation[]{ain1}; 3066 return result; 3067 } 3068 3069 // ain1 = "int val" 3070 public result_int reduce_my_MyPtrShort(Allocation ain1) { 3071 return reduce_my_MyPtrShort(ain1, null); 3072 } 3073 3074 // ain1 = "int val" 3075 public result_int reduce_my_MyPtrShort(Allocation ain1, Script.LaunchOptions sc) { 3076 // check ain1 3077 if (!ain1.getType().getElement().isCompatible(__I32)) { 3078 throw new RSRuntimeException("Type mismatch with I32!"); 3079 } 3080 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3081 aout.setAutoPadding(true); 3082 reduce(mExportReduceIdx_my_MyPtrShort, new Allocation[]{ain1}, aout, sc); 3083 return new result_int(aout); 3084 } 3085 3086 private final static int mExportReduceIdx_my_array_MyPtrShort = 91; 3087 // in1 = "val" 3088 public result_int reduce_my_array_MyPtrShort(int[] in1) { 3089 // Verify that "in1" is non-null. 3090 if (in1 == null) { 3091 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3092 } 3093 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3094 ain1.setAutoPadding(true); 3095 ain1.copyFrom(in1); 3096 3097 result_int result = reduce_my_array_MyPtrShort(ain1, null); 3098 result.mTempIns = new Allocation[]{ain1}; 3099 return result; 3100 } 3101 3102 // ain1 = "int val" 3103 public result_int reduce_my_array_MyPtrShort(Allocation ain1) { 3104 return reduce_my_array_MyPtrShort(ain1, null); 3105 } 3106 3107 // ain1 = "int val" 3108 public result_int reduce_my_array_MyPtrShort(Allocation ain1, Script.LaunchOptions sc) { 3109 // check ain1 3110 if (!ain1.getType().getElement().isCompatible(__I32)) { 3111 throw new RSRuntimeException("Type mismatch with I32!"); 3112 } 3113 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3114 aout.setAutoPadding(true); 3115 reduce(mExportReduceIdx_my_array_MyPtrShort, new Allocation[]{ain1}, aout, sc); 3116 return new result_int(aout); 3117 } 3118 3119 private final static int mExportReduceIdx_my_MyPtrVoid = 92; 3120 // in1 = "val" 3121 public result_int reduce_my_MyPtrVoid(int[] in1) { 3122 // Verify that "in1" is non-null. 3123 if (in1 == null) { 3124 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3125 } 3126 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3127 ain1.setAutoPadding(true); 3128 ain1.copyFrom(in1); 3129 3130 result_int result = reduce_my_MyPtrVoid(ain1, null); 3131 result.mTempIns = new Allocation[]{ain1}; 3132 return result; 3133 } 3134 3135 // ain1 = "int val" 3136 public result_int reduce_my_MyPtrVoid(Allocation ain1) { 3137 return reduce_my_MyPtrVoid(ain1, null); 3138 } 3139 3140 // ain1 = "int val" 3141 public result_int reduce_my_MyPtrVoid(Allocation ain1, Script.LaunchOptions sc) { 3142 // check ain1 3143 if (!ain1.getType().getElement().isCompatible(__I32)) { 3144 throw new RSRuntimeException("Type mismatch with I32!"); 3145 } 3146 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3147 aout.setAutoPadding(true); 3148 reduce(mExportReduceIdx_my_MyPtrVoid, new Allocation[]{ain1}, aout, sc); 3149 return new result_int(aout); 3150 } 3151 3152 private final static int mExportReduceIdx_my_array_MyPtrVoid = 93; 3153 // in1 = "val" 3154 public result_int reduce_my_array_MyPtrVoid(int[] in1) { 3155 // Verify that "in1" is non-null. 3156 if (in1 == null) { 3157 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3158 } 3159 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3160 ain1.setAutoPadding(true); 3161 ain1.copyFrom(in1); 3162 3163 result_int result = reduce_my_array_MyPtrVoid(ain1, null); 3164 result.mTempIns = new Allocation[]{ain1}; 3165 return result; 3166 } 3167 3168 // ain1 = "int val" 3169 public result_int reduce_my_array_MyPtrVoid(Allocation ain1) { 3170 return reduce_my_array_MyPtrVoid(ain1, null); 3171 } 3172 3173 // ain1 = "int val" 3174 public result_int reduce_my_array_MyPtrVoid(Allocation ain1, Script.LaunchOptions sc) { 3175 // check ain1 3176 if (!ain1.getType().getElement().isCompatible(__I32)) { 3177 throw new RSRuntimeException("Type mismatch with I32!"); 3178 } 3179 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3180 aout.setAutoPadding(true); 3181 reduce(mExportReduceIdx_my_array_MyPtrVoid, new Allocation[]{ain1}, aout, sc); 3182 return new result_int(aout); 3183 } 3184 3185 private final static int mExportReduceIdx_my_MyStruct = 94; 3186 // in1 = "val" 3187 public result_int reduce_my_MyStruct(int[] in1) { 3188 // Verify that "in1" is non-null. 3189 if (in1 == null) { 3190 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3191 } 3192 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3193 ain1.setAutoPadding(true); 3194 ain1.copyFrom(in1); 3195 3196 result_int result = reduce_my_MyStruct(ain1, null); 3197 result.mTempIns = new Allocation[]{ain1}; 3198 return result; 3199 } 3200 3201 // ain1 = "int val" 3202 public result_int reduce_my_MyStruct(Allocation ain1) { 3203 return reduce_my_MyStruct(ain1, null); 3204 } 3205 3206 // ain1 = "int val" 3207 public result_int reduce_my_MyStruct(Allocation ain1, Script.LaunchOptions sc) { 3208 // check ain1 3209 if (!ain1.getType().getElement().isCompatible(__I32)) { 3210 throw new RSRuntimeException("Type mismatch with I32!"); 3211 } 3212 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3213 aout.setAutoPadding(true); 3214 reduce(mExportReduceIdx_my_MyStruct, new Allocation[]{ain1}, aout, sc); 3215 return new result_int(aout); 3216 } 3217 3218 private final static int mExportReduceIdx_my_array_MyStruct = 95; 3219 // in1 = "val" 3220 public result_int reduce_my_array_MyStruct(int[] in1) { 3221 // Verify that "in1" is non-null. 3222 if (in1 == null) { 3223 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3224 } 3225 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3226 ain1.setAutoPadding(true); 3227 ain1.copyFrom(in1); 3228 3229 result_int result = reduce_my_array_MyStruct(ain1, null); 3230 result.mTempIns = new Allocation[]{ain1}; 3231 return result; 3232 } 3233 3234 // ain1 = "int val" 3235 public result_int reduce_my_array_MyStruct(Allocation ain1) { 3236 return reduce_my_array_MyStruct(ain1, null); 3237 } 3238 3239 // ain1 = "int val" 3240 public result_int reduce_my_array_MyStruct(Allocation ain1, Script.LaunchOptions sc) { 3241 // check ain1 3242 if (!ain1.getType().getElement().isCompatible(__I32)) { 3243 throw new RSRuntimeException("Type mismatch with I32!"); 3244 } 3245 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3246 aout.setAutoPadding(true); 3247 reduce(mExportReduceIdx_my_array_MyStruct, new Allocation[]{ain1}, aout, sc); 3248 return new result_int(aout); 3249 } 3250 3251 private final static int mExportReduceIdx_my_MyUnion = 96; 3252 // in1 = "val" 3253 public result_int reduce_my_MyUnion(int[] in1) { 3254 // Verify that "in1" is non-null. 3255 if (in1 == null) { 3256 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3257 } 3258 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3259 ain1.setAutoPadding(true); 3260 ain1.copyFrom(in1); 3261 3262 result_int result = reduce_my_MyUnion(ain1, null); 3263 result.mTempIns = new Allocation[]{ain1}; 3264 return result; 3265 } 3266 3267 // ain1 = "int val" 3268 public result_int reduce_my_MyUnion(Allocation ain1) { 3269 return reduce_my_MyUnion(ain1, null); 3270 } 3271 3272 // ain1 = "int val" 3273 public result_int reduce_my_MyUnion(Allocation ain1, Script.LaunchOptions sc) { 3274 // check ain1 3275 if (!ain1.getType().getElement().isCompatible(__I32)) { 3276 throw new RSRuntimeException("Type mismatch with I32!"); 3277 } 3278 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3279 aout.setAutoPadding(true); 3280 reduce(mExportReduceIdx_my_MyUnion, new Allocation[]{ain1}, aout, sc); 3281 return new result_int(aout); 3282 } 3283 3284 private final static int mExportReduceIdx_my_array_MyUnion = 97; 3285 // in1 = "val" 3286 public result_int reduce_my_array_MyUnion(int[] in1) { 3287 // Verify that "in1" is non-null. 3288 if (in1 == null) { 3289 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3290 } 3291 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3292 ain1.setAutoPadding(true); 3293 ain1.copyFrom(in1); 3294 3295 result_int result = reduce_my_array_MyUnion(ain1, null); 3296 result.mTempIns = new Allocation[]{ain1}; 3297 return result; 3298 } 3299 3300 // ain1 = "int val" 3301 public result_int reduce_my_array_MyUnion(Allocation ain1) { 3302 return reduce_my_array_MyUnion(ain1, null); 3303 } 3304 3305 // ain1 = "int val" 3306 public result_int reduce_my_array_MyUnion(Allocation ain1, Script.LaunchOptions sc) { 3307 // check ain1 3308 if (!ain1.getType().getElement().isCompatible(__I32)) { 3309 throw new RSRuntimeException("Type mismatch with I32!"); 3310 } 3311 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3312 aout.setAutoPadding(true); 3313 reduce(mExportReduceIdx_my_array_MyUnion, new Allocation[]{ain1}, aout, sc); 3314 return new result_int(aout); 3315 } 3316 3317 private final static int mExportReduceIdx_my_MyBlob = 98; 3318 // in1 = "val" 3319 public result_int reduce_my_MyBlob(int[] in1) { 3320 // Verify that "in1" is non-null. 3321 if (in1 == null) { 3322 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3323 } 3324 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3325 ain1.setAutoPadding(true); 3326 ain1.copyFrom(in1); 3327 3328 result_int result = reduce_my_MyBlob(ain1, null); 3329 result.mTempIns = new Allocation[]{ain1}; 3330 return result; 3331 } 3332 3333 // ain1 = "int val" 3334 public result_int reduce_my_MyBlob(Allocation ain1) { 3335 return reduce_my_MyBlob(ain1, null); 3336 } 3337 3338 // ain1 = "int val" 3339 public result_int reduce_my_MyBlob(Allocation ain1, Script.LaunchOptions sc) { 3340 // check ain1 3341 if (!ain1.getType().getElement().isCompatible(__I32)) { 3342 throw new RSRuntimeException("Type mismatch with I32!"); 3343 } 3344 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3345 aout.setAutoPadding(true); 3346 reduce(mExportReduceIdx_my_MyBlob, new Allocation[]{ain1}, aout, sc); 3347 return new result_int(aout); 3348 } 3349 3350 private final static int mExportReduceIdx_my_array_MyBlob = 99; 3351 // in1 = "val" 3352 public result_int reduce_my_array_MyBlob(int[] in1) { 3353 // Verify that "in1" is non-null. 3354 if (in1 == null) { 3355 throw new RSIllegalArgumentException("Array \"in1\" is null!"); 3356 } 3357 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length); 3358 ain1.setAutoPadding(true); 3359 ain1.copyFrom(in1); 3360 3361 result_int result = reduce_my_array_MyBlob(ain1, null); 3362 result.mTempIns = new Allocation[]{ain1}; 3363 return result; 3364 } 3365 3366 // ain1 = "int val" 3367 public result_int reduce_my_array_MyBlob(Allocation ain1) { 3368 return reduce_my_array_MyBlob(ain1, null); 3369 } 3370 3371 // ain1 = "int val" 3372 public result_int reduce_my_array_MyBlob(Allocation ain1, Script.LaunchOptions sc) { 3373 // check ain1 3374 if (!ain1.getType().getElement().isCompatible(__I32)) { 3375 throw new RSRuntimeException("Type mismatch with I32!"); 3376 } 3377 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1); 3378 aout.setAutoPadding(true); 3379 reduce(mExportReduceIdx_my_array_MyBlob, new Allocation[]{ain1}, aout, sc); 3380 return new result_int(aout); 3381 } 3382 3383 } 3384 3385