]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Microoptimizations for VERIFY() and friends
authorAdam D. Moss <c@yotes.com>
Fri, 12 Mar 2021 01:16:09 +0000 (17:16 -0800)
committerGitHub <noreply@github.com>
Fri, 12 Mar 2021 01:16:09 +0000 (17:16 -0800)
commitc94d648b1c2726882c57cb4e48bc61d74c881418
treed85a8c25e5a36d194169f1a122220f46d47ffd6d
parent92e8fb63956e8df91bab9644a2b5838486942686
Microoptimizations for VERIFY() and friends

Add branch hints and constify the intermediate evaluations of
left/right params in VERIFY3*().

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Adam Moss <c@yotes.com>
Closes #11708
include/os/freebsd/spl/sys/debug.h
include/os/linux/spl/sys/debug.h