lkml.org 
[lkml]   [2020]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v4 15/18] static_call: Handle tail-calls
    On Fri, May 01, 2020 at 10:29:04PM +0200, Peter Zijlstra wrote:
    > if (IS_ENABLED(CONFIG_HAVE_STATIC_CALL_INLINE) && site)
    > - __static_call_transform(site, !func, func);
    > + __static_call_transform(site, 2*tail + !func, func);

    I'm having trouble making that more readable though... that !func can be
    exanded like proposed in 14 without code-gen changes, but:

    __static_call_transform(site, tail ? (func ? JMP : RET)
    : (func ? CALL : NOP), func);

    generates a right old mess.

    \
     
     \ /
      Last update: 2020-05-06 20:11    [W:3.766 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site