Descriptionwtf: Eliminate inliner abuse in saturatedSet function.
The two overloads of the saturateSet function previously took an argument,
FractionalShift, of type int, which they passed to an inline asm block using
an "n" (integer immediate) constraint. This meant that the function could
not be compiled on its own if its address was taken (either directly or via
e.g. -finstrument-functions), as FractionalShift would not be a constant.
Fix this by passing FractionalShift as a template parameter. This lets us
remove its header file from the -finstrument-functions blacklist.
BUG=539408
R=thakis@chromium.org
Committed: https://crrev.com/3f68f09657fbab2d69bd253f163c8c1ec08d9759
Cr-Commit-Position: refs/heads/master@{#360696}
Patch Set 1 #
Messages
Total messages: 10 (3 generated)
|