Fix RTEMS CPU_EQUAL_S()
According to the FreeBSD man page BIT_CMP() returns true in case the two sets are NOT equal. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
ffcaf32108
commit
c29f5b219d
|
@ -202,7 +202,7 @@ static __inline int CPU_COUNT(const cpu_set_t *set)
|
||||||
static __inline int CPU_EQUAL_S(size_t setsize, const cpu_set_t *set1,
|
static __inline int CPU_EQUAL_S(size_t setsize, const cpu_set_t *set1,
|
||||||
const cpu_set_t *set2)
|
const cpu_set_t *set2)
|
||||||
{
|
{
|
||||||
return BIT_CMP(_cpu_set_bits(setsize), set1, set2);
|
return !BIT_CMP(_cpu_set_bits(setsize), set1, set2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline int CPU_EQUAL(const cpu_set_t *set1, const cpu_set_t *set2)
|
static __inline int CPU_EQUAL(const cpu_set_t *set1, const cpu_set_t *set2)
|
||||||
|
@ -212,7 +212,7 @@ static __inline int CPU_EQUAL(const cpu_set_t *set1, const cpu_set_t *set2)
|
||||||
|
|
||||||
static __inline int CPU_CMP(const cpu_set_t *set1, const cpu_set_t *set2)
|
static __inline int CPU_CMP(const cpu_set_t *set1, const cpu_set_t *set2)
|
||||||
{
|
{
|
||||||
return CPU_EQUAL(set1, set2);
|
return BIT_CMP(CPU_SETSIZE, set1, set2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline int CPU_EMPTY(const cpu_set_t *set)
|
static __inline int CPU_EMPTY(const cpu_set_t *set)
|
||||||
|
|
Loading…
Reference in New Issue