performance - Storing a 32 byte object, on Ivy Bridge? -


i trying find out whether, on ivy bridge, possible write 256-bit object consists of various data types (int, double, float etc)?

i have had @ intel manual , ctrl+f "32-byte" results discussing 256-bits of same data type (so 4x doubles or 8x floats etc).

i doing part of lock-free design ensure data consistency- load 256 bits of data together, extract each of various components separately.

i did web search, , appears intel not guarantee 32 byte write atomic. found this suggests not regular 8 byte writes guaranteed atomic.

intel provides compare , exchange 8 byte instruction atomic.

bottom line think need take approach.

edit: forgot x86 lock prefix. looking @ this, says byte memory operations guaranteed atomic, while larger operations not unless lock prefix used on read/write instruction.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -