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] - Rev 27

Compare with Previous | Blame | View Log

/* Used by the elf ifunc tests.  */
#ifndef ELF_IFUNC_SEL_H
#define ELF_IFUNC_SEL_H 1
 
extern int global;
 
static inline void *
ifunc_sel (int (*f1) (void), int (*f2) (void), int (*f3) (void))
{
 switch (global)
   {
   case 1:
     return f1;
   case -1:
     return f2;
   default:
     return f3;
   }
}
 
static inline void *
ifunc_one (int (*f1) (void))
{
  return f1;
}
#endif
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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