3 ms·
If you mean malloc() by that: malloc will return aligned memory so that you can store all data types, i.e. it is 64-bit aligned at least (so you can store doubl
by fefe23 6y ago
If you mean malloc() by that: malloc will return aligned memory so that you can store all data types, i.e. it is 64-bit aligned at least (so you can store double) but probably has even higher granularity.
It's the downside of malloc not knowing the type you want and returning void*. It has to assume the worst alignment requirements.
Which actually happen to be 128 bytes for SSE instructions.
- midjji 6y agoIs this guaranteed by the standard? worst seems platform dependent, does that mean it will vary with platform? what about x86 vs amd64? could it ever be more than 128 bytes?
- asdfasgasdgasdg 6y agoI don't mean malloc. I mean that the memory is allocated inside the database sdk we are using.