repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Properly handle forced elision in pthread_mutex_trylock (bug 16657)
[glibc.git]
/
sysdeps
/
generic
/
ifunc-sel.h
blob
6a27b69c5babaefab1c778f6d541ff8d14938d4a
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