computablee / DotMP

A collection of powerful abstractions for parallel programming in .NET with an OpenMP-like API.
https://computablee.github.io/DotMP/
GNU Lesser General Public License v2.1
29 stars 8 forks source link

[FEATURE] Atomic subtraction of unsigned integers/longs #117

Closed computablee closed 10 months ago

computablee commented 10 months ago

It would be excellent to incorporate atomic subtraction for unsigned types. E.g. Atomic.Sub(ref uint, uint) and Atomic.Sub(ref ulong, ulong). Unsafe.As<T> should be sufficient for this purpose.

Self-assigning this issue.