genericopenlibs/liboil/src/liboilmarshal.c
branchRCL_3
changeset 56 acd3cd4aaceb
equal deleted inserted replaced
54:4332f0f7be53 56:acd3cd4aaceb
       
     1 /*
       
     2  * LIBOIL - Library of Optimized Inner Loops
       
     3  * Copyright (c) 2004 David A. Schleef <ds@schleef.org>
       
     4  * All rights reserved.
       
     5  *
       
     6  * Redistribution and use in source and binary forms, with or without
       
     7  * modification, are permitted provided that the following conditions
       
     8  * are met:
       
     9  * 1. Redistributions of source code must retain the above copyright
       
    10  *    notice, this list of conditions and the following disclaimer.
       
    11  * 2. Redistributions in binary form must reproduce the above copyright
       
    12  *    notice, this list of conditions and the following disclaimer in the
       
    13  *    documentation and/or other materials provided with the distribution.
       
    14  * 
       
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
       
    16  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
       
    17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
       
    18  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
       
    19  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
       
    20  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
       
    21  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
       
    22  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
       
    23  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
       
    24  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
       
    25  * POSSIBILITY OF SUCH DAMAGE.
       
    26  */
       
    27 
       
    28 /* This file is automatically generated.  Do not edit. */
       
    29 
       
    30 #ifdef HAVE_CONFIG_H
       
    31 #include <config.h>
       
    32 #endif
       
    33 
       
    34 #include <liboil/liboiltest.h>
       
    35 #include <liboil/liboildebug.h>
       
    36 #include <liboil/liboilprofile.h>
       
    37 
       
    38 #ifdef __SYMBIAN32__
       
    39 #ifdef __WINSCW__
       
    40 #pragma warn_unusedarg off 
       
    41 #endif//__WINSCW__
       
    42 #endif//__SYMBIAN32__
       
    43 
       
    44 void
       
    45 _oil_test_marshal_function (void *func, unsigned long *args, int n_args,
       
    46     unsigned int pointer_mask, OilProfile *prof)
       
    47 {
       
    48   switch (pointer_mask) {
       
    49     case 0x0034:
       
    50       oil_profile_start (prof);
       
    51       ((void (*)(void *,int,void *,int,int))func)
       
    52         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(int)args[4]);
       
    53       oil_profile_stop (prof);
       
    54       break;
       
    55     case 0x007e:
       
    56       oil_profile_start (prof);
       
    57       ((void (*)(void *,void *,void *,void *,void *,int))func)
       
    58         ((void *)args[0],(void *)args[1],(void *)args[2],(void *)args[3],(void *)args[4],(int)args[5]);
       
    59       oil_profile_stop (prof);
       
    60       break;
       
    61     case 0x001e:
       
    62       oil_profile_start (prof);
       
    63       ((void (*)(void *,void *,void *,int))func)
       
    64         ((void *)args[0],(void *)args[1],(void *)args[2],(int)args[3]);
       
    65       oil_profile_stop (prof);
       
    66       break;
       
    67     case 0x00d4:
       
    68       oil_profile_start (prof);
       
    69       ((void (*)(void *,int,void *,int,void *,int,int))func)
       
    70         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5],(int)args[6]);
       
    71       oil_profile_stop (prof);
       
    72       break;
       
    73     case 0x000e:
       
    74       oil_profile_start (prof);
       
    75       ((void (*)(void *,void *,int))func)
       
    76         ((void *)args[0],(void *)args[1],(int)args[2]);
       
    77       oil_profile_stop (prof);
       
    78       break;
       
    79     case 0x003b:
       
    80       oil_profile_start (prof);
       
    81       ((void (*)(void *,void *,int,void *,void *))func)
       
    82         ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(void *)args[4]);
       
    83       oil_profile_stop (prof);
       
    84       break;
       
    85     case 0x001d:
       
    86       oil_profile_start (prof);
       
    87       ((void (*)(void *,void *,int,void *))func)
       
    88         ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3]);
       
    89       oil_profile_stop (prof);
       
    90       break;
       
    91     case 0x00d3:
       
    92       oil_profile_start (prof);
       
    93       ((void (*)(void *,int,void *,int,int,void *,void *))func)
       
    94         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(int)args[4],(void *)args[5],(void *)args[6]);
       
    95       oil_profile_stop (prof);
       
    96       break;
       
    97     case 0x001a:
       
    98       oil_profile_start (prof);
       
    99       ((void (*)(void *,int,void *,int))func)
       
   100         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3]);
       
   101       oil_profile_stop (prof);
       
   102       break;
       
   103     case 0x003a:
       
   104       oil_profile_start (prof);
       
   105       ((void (*)(void *,void *,int,void *,int))func)
       
   106         ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(int)args[4]);
       
   107       oil_profile_stop (prof);
       
   108       break;
       
   109     case 0x01aa:
       
   110       oil_profile_start (prof);
       
   111       ((void (*)(void *,int,void *,int,void *,int,void *,int))func)
       
   112         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5],(void *)args[6],(int)args[7]);
       
   113       oil_profile_stop (prof);
       
   114       break;
       
   115     case 0x1aaa:
       
   116       oil_profile_start (prof);
       
   117       ((void (*)(void *,int,void *,int,void *,int,void *,int,void *,int,void *,int))func)
       
   118         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5],(void *)args[6],(int)args[7],(void *)args[8],(int)args[9],(void *)args[10],(int)args[11]);
       
   119       oil_profile_stop (prof);
       
   120       break;
       
   121     case 0x006a:
       
   122       oil_profile_start (prof);
       
   123       ((void (*)(void *,int,void *,int,void *,int))func)
       
   124         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5]);
       
   125       oil_profile_stop (prof);
       
   126       break;
       
   127     case 0x00ea:
       
   128       oil_profile_start (prof);
       
   129       ((void (*)(void *,void *,int,void *,int,void *,int))func)
       
   130         ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(int)args[4],(void *)args[5],(int)args[6]);
       
   131       oil_profile_stop (prof);
       
   132       break;
       
   133     case 0x0074:
       
   134       oil_profile_start (prof);
       
   135       ((void (*)(void *,void *,int,void *,int,int))func)
       
   136         ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(int)args[4],(int)args[5]);
       
   137       oil_profile_stop (prof);
       
   138       break;
       
   139     case 0x0076:
       
   140       oil_profile_start (prof);
       
   141       ((void (*)(void *,void *,int,void *,void *,int))func)
       
   142         ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(void *)args[4],(int)args[5]);
       
   143       oil_profile_stop (prof);
       
   144       break;
       
   145     case 0x001c:
       
   146       oil_profile_start (prof);
       
   147       ((void (*)(void *,void *,int,int))func)
       
   148         ((void *)args[0],(void *)args[1],(int)args[2],(int)args[3]);
       
   149       oil_profile_stop (prof);
       
   150       break;
       
   151     case 0x0007:
       
   152       oil_profile_start (prof);
       
   153       ((void (*)(void *,void *))func)
       
   154         ((void *)args[0],(void *)args[1]);
       
   155       oil_profile_stop (prof);
       
   156       break;
       
   157     case 0x00fe:
       
   158       oil_profile_start (prof);
       
   159       ((void (*)(void *,void *,void *,void *,void *,void *,int))func)
       
   160         ((void *)args[0],(void *)args[1],(void *)args[2],(void *)args[3],(void *)args[4],(void *)args[5],(int)args[6]);
       
   161       oil_profile_stop (prof);
       
   162       break;
       
   163     case 0x003e:
       
   164       oil_profile_start (prof);
       
   165       ((void (*)(void *,void *,void *,void *,int))func)
       
   166         ((void *)args[0],(void *)args[1],(void *)args[2],(void *)args[3],(int)args[4]);
       
   167       oil_profile_stop (prof);
       
   168       break;
       
   169     case 0x00f6:
       
   170       oil_profile_start (prof);
       
   171       ((void (*)(void *,void *,void *,int,void *,void *,int))func)
       
   172         ((void *)args[0],(void *)args[1],(void *)args[2],(int)args[3],(void *)args[4],(void *)args[5],(int)args[6]);
       
   173       oil_profile_stop (prof);
       
   174       break;
       
   175     case 0x0078:
       
   176       oil_profile_start (prof);
       
   177       ((void (*)(void *,void *,void *,int,int,int))func)
       
   178         ((void *)args[0],(void *)args[1],(void *)args[2],(int)args[3],(int)args[4],(int)args[5]);
       
   179       oil_profile_stop (prof);
       
   180       break;
       
   181     case 0x0001:
       
   182       oil_profile_start (prof);
       
   183       ((void (*)(void))func)
       
   184         ();
       
   185       oil_profile_stop (prof);
       
   186       break;
       
   187     case 0x0035:
       
   188       oil_profile_start (prof);
       
   189       ((void (*)(void *,int,void *,int,void *))func)
       
   190         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4]);
       
   191       oil_profile_stop (prof);
       
   192       break;
       
   193     case 0x00d5:
       
   194       oil_profile_start (prof);
       
   195       ((void (*)(void *,int,void *,int,void *,int,void *))func)
       
   196         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5],(void *)args[6]);
       
   197       oil_profile_stop (prof);
       
   198       break;
       
   199     case 0x000d:
       
   200       oil_profile_start (prof);
       
   201       ((void (*)(void *,int,void *))func)
       
   202         ((void *)args[0],(int)args[1],(void *)args[2]);
       
   203       oil_profile_stop (prof);
       
   204       break;
       
   205     case 0x000f:
       
   206       oil_profile_start (prof);
       
   207       ((void (*)(void *,void *,void *))func)
       
   208         ((void *)args[0],(void *)args[1],(void *)args[2]);
       
   209       oil_profile_stop (prof);
       
   210       break;
       
   211     case 0x0353:
       
   212       oil_profile_start (prof);
       
   213       ((void (*)(void *,int,void *,int,void *,int,int,void *,void *))func)
       
   214         ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5],(int)args[6],(void *)args[7],(void *)args[8]);
       
   215       oil_profile_stop (prof);
       
   216       break;
       
   217     default:
       
   218       OIL_ERROR ("unhandled marshal case");
       
   219   }
       
   220 }
       
   221