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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [ldso/] [ldso/] [arm/] [ld_syscalls.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/* Define the __set_errno macro as nothing so that INLINE_SYSCALL
2
 * won't set errno, which is important since we make system calls
3
 * before the errno symbol is dynamicly linked. */
4
 
5
#define __set_errno(X) {(void)(X);}
6
 
7
/* Prepare for the case that `__builtin_expect' is not available.  */
8
#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
9
#define __builtin_expect(x, expected_value) (x)
10
#endif
11
#ifndef likely
12
# define likely(x)      __builtin_expect((!!(x)),1)
13
#endif
14
#ifndef unlikely
15
# define unlikely(x)    __builtin_expect((!!(x)),0)
16
#endif
17
 
18
#include "sys/syscall.h"
19
 

powered by: WebSVN 2.1.0

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