openjdk/zero: use double code for atomic64 on powerpc (original) (raw)
Andrew Haley aph at redhat.com
Wed Jun 30 08:35:38 PDT 2010
- Previous message: openjdk/zero: use double code for atomic64 on powerpc
- Next message: openjdk/zero: use double code for atomic64 on powerpc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 06/30/2010 04:30 PM, Sebastian Andrzej Siewior wrote:
this cute C code does the same thing on powerpc as the assembly code that was here before. If the compiler was built with the SPE extensions instead of traditional FPU and double operations are performed in HW then we are one step further: The compiler turns this into evldd & evstdd. Voila :)
This C code could also be activated on s390. The compiler turns this into a single mvc instruction which does the copy operation. I don't know if mvc's copy ability is atomic or not and therefore I leave it as it.
I don't quite understand this. Is it guaranteed that double stores on ppc are atomic?
Andrew.
- Previous message: openjdk/zero: use double code for atomic64 on powerpc
- Next message: openjdk/zero: use double code for atomic64 on powerpc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]