Search:

Type: Posts; User: Toby Douglass

Search: Search took 0.01 seconds.

  1. Mmm. I see what you're saying, but in fact even...

    Mmm. I see what you're saying, but in fact even the latter is not occurring, as the size of the struct is 40, rather than an integer multiple of 16.

    Alignment without tailing padding is...
  2. The padded count is hard to know since CPU and...

    The padded count is hard to know since CPU and compiler vary.

    I would greatly prefer (and expect exists) a solution where I can use ordinary pointer math to iterate over an array, rather than...
  3. The code is portable. The platform will vary,...

    The code is portable. The platform will vary, e.g. the compiler in particular. Structure alignment is compiler dependent. Hard coding padding is awkward enough when word lengths vary, but when the...
  4. Structure padding to 16 bytes for use with atomic instructions - like, WTH?

    Gents,

    I am using atomic instructions on x64 and variables so used must be 16 byte aligned.

    I use a number of structures where their members are so operated upon.

    The structures accordingly...
Results 1 to 4 of 4