Comment

Comment by CyberDildonics

> An aligned word won't span a cache line. So any aligned 64-bit or 128-bit word is always wholly within a single cache line.

On x86 a 64 bit atomic can span cache lines.

> Are you really sure ARM and POWER support that?

Do they not?

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc....

On older processors, such as ARM9 family based processors, an unaligned load had to be synthesised in software. Typically by doing a series of small accesses, and combining the results.

"The ARMv6 architecture introduced the first hardware support for unaligned accesses. ARM11 and Cortex-A/R processors can deal with unaligned accesses in hardware, removing the need for software routines."

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton