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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
int owner();
2
int clear();
3
 
4
static void fixup() {
5
   clear();
6
}
7
 
8
inline __attribute__ ((always_inline))
9
void slowtrylock(void) {
10
     if (owner())
11
         fixup();
12
}
13
 
14
void fasttrylock(void (*slowfn)()) {
15
     slowfn();
16
}
17
 
18
void trylock(void) {
19
     fasttrylock(slowtrylock);
20
}
21
 

powered by: WebSVN 2.1.0

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