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 : [email protected] PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. _______________________________________________ devel mailing list [email protected] http://lists.rtems.org/mailman/listinfo/devel
