]> git.ipfire.org Git - thirdparty/shadow.git/commit
Modernize manual memzero implementation
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 24 Jan 2023 14:44:35 +0000 (15:44 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 25 Jan 2023 10:07:25 +0000 (11:07 +0100)
commite0d79ee0320b337510aee5734579973597653df6
tree51f4b4fe86af30f06c8a9ae5e54f257912dd8a71
parent90ead3cfb8fff90f53f3dbab387e9de66b617872
Modernize manual memzero implementation

Instead of using volatile pointers to prevent the compiler from
optimizing the call away, use a memory barrier.
This requires support for embedded assembly, which should be fine after
the recent requirement bumps.
lib/defines.h