python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Is it possible to do an aligned alllocation in a constexpr context?
I have some code that requires a vector to be SIMD aligned and I'm using an aligned allocator from a library as an allocator to implement that, but this allocator has no constexpr support. Would it be...
Andreas Loanjoe
Votes: 0
Answers: 0
Why is malloc 16 byte aligned?
The GNU documentation states that malloc is aligned to 16 byte multiples on 64 bit systems. Why is this?
If my understanding is correct, registers and all instructions operate on values that are a max...
Moss Richardson
Votes: 0
Answers: 2
Pointer alignment not compatible with MISRA-C 2012
I'm trying to convert a certain pointer as follows:
I have this struct:
typedef struct {
/** Interface index */
uint8_t if_index;
/** flags */
uint32_t flags; /* error */
/** packet id */
...
weaver20
Votes: 0
Answers: 2
why gcc5 on a x86-64 system get 32-byte aligned when using new operator?
Under gcc4.9, the address obtained from the new operator is only 16-byte aligned, but under gcc5.1, it is 32-byte aligned.
I initially thought it was related to aligned new, but aligned new is only a...
111qqz
Votes: 0
Answers: 0