[PATCH v2 02/15] score: Add processor mask to/from cpu_set_t

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jul 10 05:19:41 UTC 2017


On 09/07/17 13:49, Gedare Bloom wrote:

>> +Processor_mask_Copy_status _Processor_mask_Copy(
>> +  long       *dst,
>> +  size_t      dst_size,
>> +  const long *src,
>> +  size_t      src_size
>> +)
>> +{
>> +  long inclusive = 0;
>> +  long exclusive = 0;
>> +
>> +  if ( ( dst_size | src_size ) % sizeof( long ) != 0 ) {
>> +    return PROCESSOR_MASK_COPY_INVALID_SIZE;
>> +  }
> Why is this specified in terms of long when the bit maps are defined
> in terms of uint32_t?
>

The bitset(9) uses long:

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=newlib/libc/sys/rtems/include/sys/_bitset.h;h=8d8a4c22085719fbb28df79936ec51d6c5bc4afb;hb=HEAD#l47

-- 
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