lkml.org 
[lkml]   [2012]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC][PATCH 2/3] math128: Introduce {mult,add,cmp}_u128
    From
    Date
    On Wed, 2012-04-25 at 10:23 +1000, Stephen Rothwell wrote:
    > Isn't this what asm-generic is for? You put the generic version in
    > asm-generic/math128.h and then add "generic-y += math128.h" to
    > arch/*/include/asm/Kbuild for each arch that wants the generic version.
    > Then just include asm/math128.h in linux/math128.h. Any arch that wants
    > to optimise these can then just provide its own math128.h.

    Ah, right. I didn't know that Kbuild trick. /me does:

    ls arch/*/include/asm/Kbuild | while read file; do quilt add $file;
    echo "generic-y += math128.h" >> $file; done

    Thanks!


    \
     
     \ /
      Last update: 2012-04-25 10:15    [W:0.031 / U:0.244 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site