]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86: Tag some intrinsics with __pure2
authorcem <cem@FreeBSD.org>
Thu, 3 Aug 2017 22:28:30 +0000 (22:28 +0000)
committercem <cem@FreeBSD.org>
Thu, 3 Aug 2017 22:28:30 +0000 (22:28 +0000)
commitd4a7946bbdeb8c97e89aa4068f10349bf391dead
treef3f3a3588b39ca5cac2a5e6d085dd8c2015376ad
parentfdc90dc18a412a827af48c35a09651a521ba216f
x86: Tag some intrinsics with __pure2

Some C wrappers for x86 instructions do not touch global memory and only act
on their arguments; they can be marked __pure2, aka __const__.  Without this
annotation, Clang 3.9.1 is not intelligent enough on its own to grok that
these functions are __const__.

Submitted by: Anton Rang <anton.rang AT isilon.com>
Sponsored by: Dell EMC Isilon
sys/amd64/include/cpufunc.h
sys/i386/include/cpufunc.h