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