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 7 forks source link

Implement atomic subtraction for unsigned integers #118

Closed computablee closed 11 months ago

computablee commented 11 months ago

Which issue are you addressing?

Closes #117

How have you addressed the issue?

Implemented uint Sub(ref uint, uint) and ulong Sub(ref ulong, ulong) for atomic subtraction.

How have you tested your patch?

Modified Atomic_works to test new overloads. Tests pass.

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (8444e6b) 99.20% compared to head (e274fac) 99.21%. Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #118 +/- ## ======================================= Coverage 99.20% 99.21% ======================================= Files 12 12 Lines 1262 1270 +8 Branches 134 134 ======================================= + Hits 1252 1260 +8 Misses 5 5 Partials 5 5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.