os/ossrv/genericopenlibs/liboil/src/liboilmarshal.c
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/liboil/src/liboilmarshal.c	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,221 @@
     1.4 +/*
     1.5 + * LIBOIL - Library of Optimized Inner Loops
     1.6 + * Copyright (c) 2004 David A. Schleef <ds@schleef.org>
     1.7 + * All rights reserved.
     1.8 + *
     1.9 + * Redistribution and use in source and binary forms, with or without
    1.10 + * modification, are permitted provided that the following conditions
    1.11 + * are met:
    1.12 + * 1. Redistributions of source code must retain the above copyright
    1.13 + *    notice, this list of conditions and the following disclaimer.
    1.14 + * 2. Redistributions in binary form must reproduce the above copyright
    1.15 + *    notice, this list of conditions and the following disclaimer in the
    1.16 + *    documentation and/or other materials provided with the distribution.
    1.17 + * 
    1.18 + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    1.19 + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1.20 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.21 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
    1.22 + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    1.23 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    1.24 + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.25 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
    1.26 + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
    1.27 + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    1.28 + * POSSIBILITY OF SUCH DAMAGE.
    1.29 + */
    1.30 +
    1.31 +/* This file is automatically generated.  Do not edit. */
    1.32 +
    1.33 +#ifdef HAVE_CONFIG_H
    1.34 +#include <config.h>
    1.35 +#endif
    1.36 +
    1.37 +#include <liboil/liboiltest.h>
    1.38 +#include <liboil/liboildebug.h>
    1.39 +#include <liboil/liboilprofile.h>
    1.40 +
    1.41 +#ifdef __SYMBIAN32__
    1.42 +#ifdef __WINSCW__
    1.43 +#pragma warn_unusedarg off 
    1.44 +#endif//__WINSCW__
    1.45 +#endif//__SYMBIAN32__
    1.46 +
    1.47 +void
    1.48 +_oil_test_marshal_function (void *func, unsigned long *args, int n_args,
    1.49 +    unsigned int pointer_mask, OilProfile *prof)
    1.50 +{
    1.51 +  switch (pointer_mask) {
    1.52 +    case 0x0034:
    1.53 +      oil_profile_start (prof);
    1.54 +      ((void (*)(void *,int,void *,int,int))func)
    1.55 +        ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(int)args[4]);
    1.56 +      oil_profile_stop (prof);
    1.57 +      break;
    1.58 +    case 0x007e:
    1.59 +      oil_profile_start (prof);
    1.60 +      ((void (*)(void *,void *,void *,void *,void *,int))func)
    1.61 +        ((void *)args[0],(void *)args[1],(void *)args[2],(void *)args[3],(void *)args[4],(int)args[5]);
    1.62 +      oil_profile_stop (prof);
    1.63 +      break;
    1.64 +    case 0x001e:
    1.65 +      oil_profile_start (prof);
    1.66 +      ((void (*)(void *,void *,void *,int))func)
    1.67 +        ((void *)args[0],(void *)args[1],(void *)args[2],(int)args[3]);
    1.68 +      oil_profile_stop (prof);
    1.69 +      break;
    1.70 +    case 0x00d4:
    1.71 +      oil_profile_start (prof);
    1.72 +      ((void (*)(void *,int,void *,int,void *,int,int))func)
    1.73 +        ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5],(int)args[6]);
    1.74 +      oil_profile_stop (prof);
    1.75 +      break;
    1.76 +    case 0x000e:
    1.77 +      oil_profile_start (prof);
    1.78 +      ((void (*)(void *,void *,int))func)
    1.79 +        ((void *)args[0],(void *)args[1],(int)args[2]);
    1.80 +      oil_profile_stop (prof);
    1.81 +      break;
    1.82 +    case 0x003b:
    1.83 +      oil_profile_start (prof);
    1.84 +      ((void (*)(void *,void *,int,void *,void *))func)
    1.85 +        ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(void *)args[4]);
    1.86 +      oil_profile_stop (prof);
    1.87 +      break;
    1.88 +    case 0x001d:
    1.89 +      oil_profile_start (prof);
    1.90 +      ((void (*)(void *,void *,int,void *))func)
    1.91 +        ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3]);
    1.92 +      oil_profile_stop (prof);
    1.93 +      break;
    1.94 +    case 0x00d3:
    1.95 +      oil_profile_start (prof);
    1.96 +      ((void (*)(void *,int,void *,int,int,void *,void *))func)
    1.97 +        ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(int)args[4],(void *)args[5],(void *)args[6]);
    1.98 +      oil_profile_stop (prof);
    1.99 +      break;
   1.100 +    case 0x001a:
   1.101 +      oil_profile_start (prof);
   1.102 +      ((void (*)(void *,int,void *,int))func)
   1.103 +        ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3]);
   1.104 +      oil_profile_stop (prof);
   1.105 +      break;
   1.106 +    case 0x003a:
   1.107 +      oil_profile_start (prof);
   1.108 +      ((void (*)(void *,void *,int,void *,int))func)
   1.109 +        ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(int)args[4]);
   1.110 +      oil_profile_stop (prof);
   1.111 +      break;
   1.112 +    case 0x01aa:
   1.113 +      oil_profile_start (prof);
   1.114 +      ((void (*)(void *,int,void *,int,void *,int,void *,int))func)
   1.115 +        ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5],(void *)args[6],(int)args[7]);
   1.116 +      oil_profile_stop (prof);
   1.117 +      break;
   1.118 +    case 0x1aaa:
   1.119 +      oil_profile_start (prof);
   1.120 +      ((void (*)(void *,int,void *,int,void *,int,void *,int,void *,int,void *,int))func)
   1.121 +        ((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]);
   1.122 +      oil_profile_stop (prof);
   1.123 +      break;
   1.124 +    case 0x006a:
   1.125 +      oil_profile_start (prof);
   1.126 +      ((void (*)(void *,int,void *,int,void *,int))func)
   1.127 +        ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5]);
   1.128 +      oil_profile_stop (prof);
   1.129 +      break;
   1.130 +    case 0x00ea:
   1.131 +      oil_profile_start (prof);
   1.132 +      ((void (*)(void *,void *,int,void *,int,void *,int))func)
   1.133 +        ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(int)args[4],(void *)args[5],(int)args[6]);
   1.134 +      oil_profile_stop (prof);
   1.135 +      break;
   1.136 +    case 0x0074:
   1.137 +      oil_profile_start (prof);
   1.138 +      ((void (*)(void *,void *,int,void *,int,int))func)
   1.139 +        ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(int)args[4],(int)args[5]);
   1.140 +      oil_profile_stop (prof);
   1.141 +      break;
   1.142 +    case 0x0076:
   1.143 +      oil_profile_start (prof);
   1.144 +      ((void (*)(void *,void *,int,void *,void *,int))func)
   1.145 +        ((void *)args[0],(void *)args[1],(int)args[2],(void *)args[3],(void *)args[4],(int)args[5]);
   1.146 +      oil_profile_stop (prof);
   1.147 +      break;
   1.148 +    case 0x001c:
   1.149 +      oil_profile_start (prof);
   1.150 +      ((void (*)(void *,void *,int,int))func)
   1.151 +        ((void *)args[0],(void *)args[1],(int)args[2],(int)args[3]);
   1.152 +      oil_profile_stop (prof);
   1.153 +      break;
   1.154 +    case 0x0007:
   1.155 +      oil_profile_start (prof);
   1.156 +      ((void (*)(void *,void *))func)
   1.157 +        ((void *)args[0],(void *)args[1]);
   1.158 +      oil_profile_stop (prof);
   1.159 +      break;
   1.160 +    case 0x00fe:
   1.161 +      oil_profile_start (prof);
   1.162 +      ((void (*)(void *,void *,void *,void *,void *,void *,int))func)
   1.163 +        ((void *)args[0],(void *)args[1],(void *)args[2],(void *)args[3],(void *)args[4],(void *)args[5],(int)args[6]);
   1.164 +      oil_profile_stop (prof);
   1.165 +      break;
   1.166 +    case 0x003e:
   1.167 +      oil_profile_start (prof);
   1.168 +      ((void (*)(void *,void *,void *,void *,int))func)
   1.169 +        ((void *)args[0],(void *)args[1],(void *)args[2],(void *)args[3],(int)args[4]);
   1.170 +      oil_profile_stop (prof);
   1.171 +      break;
   1.172 +    case 0x00f6:
   1.173 +      oil_profile_start (prof);
   1.174 +      ((void (*)(void *,void *,void *,int,void *,void *,int))func)
   1.175 +        ((void *)args[0],(void *)args[1],(void *)args[2],(int)args[3],(void *)args[4],(void *)args[5],(int)args[6]);
   1.176 +      oil_profile_stop (prof);
   1.177 +      break;
   1.178 +    case 0x0078:
   1.179 +      oil_profile_start (prof);
   1.180 +      ((void (*)(void *,void *,void *,int,int,int))func)
   1.181 +        ((void *)args[0],(void *)args[1],(void *)args[2],(int)args[3],(int)args[4],(int)args[5]);
   1.182 +      oil_profile_stop (prof);
   1.183 +      break;
   1.184 +    case 0x0001:
   1.185 +      oil_profile_start (prof);
   1.186 +      ((void (*)(void))func)
   1.187 +        ();
   1.188 +      oil_profile_stop (prof);
   1.189 +      break;
   1.190 +    case 0x0035:
   1.191 +      oil_profile_start (prof);
   1.192 +      ((void (*)(void *,int,void *,int,void *))func)
   1.193 +        ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4]);
   1.194 +      oil_profile_stop (prof);
   1.195 +      break;
   1.196 +    case 0x00d5:
   1.197 +      oil_profile_start (prof);
   1.198 +      ((void (*)(void *,int,void *,int,void *,int,void *))func)
   1.199 +        ((void *)args[0],(int)args[1],(void *)args[2],(int)args[3],(void *)args[4],(int)args[5],(void *)args[6]);
   1.200 +      oil_profile_stop (prof);
   1.201 +      break;
   1.202 +    case 0x000d:
   1.203 +      oil_profile_start (prof);
   1.204 +      ((void (*)(void *,int,void *))func)
   1.205 +        ((void *)args[0],(int)args[1],(void *)args[2]);
   1.206 +      oil_profile_stop (prof);
   1.207 +      break;
   1.208 +    case 0x000f:
   1.209 +      oil_profile_start (prof);
   1.210 +      ((void (*)(void *,void *,void *))func)
   1.211 +        ((void *)args[0],(void *)args[1],(void *)args[2]);
   1.212 +      oil_profile_stop (prof);
   1.213 +      break;
   1.214 +    case 0x0353:
   1.215 +      oil_profile_start (prof);
   1.216 +      ((void (*)(void *,int,void *,int,void *,int,int,void *,void *))func)
   1.217 +        ((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]);
   1.218 +      oil_profile_stop (prof);
   1.219 +      break;
   1.220 +    default:
   1.221 +      OIL_ERROR ("unhandled marshal case");
   1.222 +  }
   1.223 +}
   1.224 +