mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 04:19:21 +08:00
* libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
(CPU_SET): Likewise.
This commit is contained in:
parent
91659b43b9
commit
a6e73f9505
@ -1,3 +1,8 @@
|
||||
2014-04-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
|
||||
(CPU_SET): Likewise.
|
||||
|
||||
2014-04-09 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* libc/machine/rl78/setjmp.S: Add RL78/G10 support.
|
||||
|
@ -153,14 +153,14 @@ static __inline void CPU_CLR(int cpu, cpu_set_t *set)
|
||||
CPU_CLR_S(cpu, sizeof(*set), set);
|
||||
}
|
||||
|
||||
static __inline int CPU_ISSET_S(int cpu, size_t setsize, cpu_set_t *set)
|
||||
static __inline int CPU_ISSET_S(int cpu, size_t setsize, const cpu_set_t *set)
|
||||
{
|
||||
const cpu_set_word_t *w = &set->__bits[0];
|
||||
|
||||
return ((w[__cpuset_index(cpu)] & __cpuset_mask(cpu)) != 0);
|
||||
}
|
||||
|
||||
static __inline int CPU_ISSET(int cpu, cpu_set_t *set)
|
||||
static __inline int CPU_ISSET(int cpu, const cpu_set_t *set)
|
||||
{
|
||||
return CPU_ISSET_S(cpu, sizeof(*set), set);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user