Interesting. A similar patch was provided for Fedora and included in
upstream CLN. However, it #defines cl_word_alignment to 4, not 8, as you
do. Are you sure about 8? If you are sure, I can change this upstream.
I'm pretty sure 8 is right.

The comments in the cln source say

// cl_uint_alignment is the guaranteed alignment of a `void*' or `long'
// in memory. Must be > 1.

I presure cl_uint_alignment in the comment is a typo for cl_word_alignment since cl_uint_alignment doesn't appear anywhere in the source tree other than that comment.

I ran the test program below in an arm64 qemu chroot and it told me that the alignment for both void * and long is 8.

Furthermore all the other 64-bit architectures seem to have it defined as 8.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to