summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-02-23 14:27:51 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-03-02 15:21:47 +0800
commitf79d2d2852facc72b91a78e5c423722c7dc53d72 (patch)
tree54930887abed53572f0bf898adeedc33f56bd5e5 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent006401d29a5cc3774b035e933ca6f063134b8433 (diff)
crypto: skcipher - Use restrict rather than hand-rolling accesses
Rather than accessing 'alg' directly to avoid the aliasing issue which leads to unnecessary reloads, use the __restrict keyword to explicitly tell the compiler that there is no aliasing. This generates equivalent if not superior code on x86 with gcc 12. Note that in skcipher_walk_virt the alg assignment is moved after might_sleep_if because that function is a compiler barrier and forces a reload. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions