On 24/09/2020 18:30, Gedare Bloom wrote:
+#define MESSAGE_SIZE_LIMIT \ + ( SIZE_MAX - sizeof( uintptr_t ) - 1 \Minor: should it be - ( sizeof( uintptr_t ) - 1 )? Or: - sizeof(uintptr_t) + 1The alignment up can add at most sizeof(uintptr_t)-1 bytes overhead I think is what this is trying to capture?
Oh, yes. Two minus are a plus. _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel