opendlang / opend

Boost Software License 1.0
76 stars 17 forks source link

Move compiler dependent atomics to core/internal/atomic.d #35

Closed IgorDeepakM closed 5 months ago

IgorDeepakM commented 5 months ago

Moved the architecture and compiler dependent atomic implementations to to core/internal/atomic.d. core.atomic and stdc.stdatomic now uses the internal atomic implemenation instead in order to use compiler intrinsics.

Especially stdatomic now uses more intrinsics when using LDC in order to get better code generation.