projects
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* hppa-tdep.c (unwind_command): Use host_address_to_string function
[binutils-gdb.git]
/
gold
/
testsuite
/
ifunc-sel.h
1
/* 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