cpuset macro /vs/ inline implementation

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 25 14:39:06 UTC 2013


On 2013-10-25 16:30, Jennifer Averett wrote:
>>> /* return 1 if the sets set1 and set2 are equal, otherwise return 0 */
>>> > >static inline int CPU_EQUAL(cpu_set_t *set1, cpu_set_t *set2) {
>>> > >    size_t i;
>>> > >
>>> > >    for (i=0; i < _NCPUWORDS; i++)
>>> > >      if (set1->__bits[i] != set2->__bits[i] )
>>> > >        return 0;
>>> > >    return 1;
>>> > >}
>> >
>> >Why not use bool as return type?
> BSD and linux return 0 or 1 do we want to deviate that much?
>

Ok, we should follow them.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list