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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [testsuite/] [ifunc-sel.h] - Blame information for rev 98

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 khays
/* Used by the elf ifunc tests.  */
2
#ifndef ELF_IFUNC_SEL_H
3
#define ELF_IFUNC_SEL_H 1
4
 
5
extern int global;
6
 
7
static inline void *
8
ifunc_sel (int (*f1) (void), int (*f2) (void), int (*f3) (void))
9
{
10
 switch (global)
11
   {
12
   case 1:
13
     return f1;
14
   case -1:
15
     return f2;
16
   default:
17
     return f3;
18
   }
19
}
20
 
21
static inline void *
22
ifunc_one (int (*f1) (void))
23
{
24
  return f1;
25
}
26
#endif

powered by: WebSVN 2.1.0

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