|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 2/3] xen/string: Use compiler __builtin_*() where possible
>>> On 12.05.17 at 19:35, <andrew.cooper3@xxxxxxxxxx> wrote:
> The use of -fno-builtin inhibits these automatic transformations. This causes
> constructs such as strlen("literal") to be evaluated at compile time, and
> certain simple operations to be replaced with repeated string operations.
>
> To avoid the macro altering the function names, use the method recommended by
> the C specification by enclosing the function name in brackets to avoid the
> macro being expanded. This means that optimisation opportunities continue to
> work in the rest of the translation unit.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |