OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40753.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
typedef struct {
2
    unsigned nargs;
3
} ffi_cif;
4
typedef struct {
5
    char tramp[24];
6
    ffi_cif *cif;
7
} ffi_closure;
8
extern void *memcpy (void *, const void *, __SIZE_TYPE__);
9
extern void ffi_closure_LINUX64 (void);
10
 
11
int
12
ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif)
13
{
14
  void **tramp = (void **) &closure->tramp[0];
15
 
16
  memcpy (tramp, (char *) ffi_closure_LINUX64, 16);
17
  closure->cif = cif;
18
 
19
  return 0;
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.