use vecfold.singeli's x86 fold_addw in count.singeli
This commit is contained in:
parent
5df3712748
commit
3d52d14101
@ -1,11 +1,6 @@
|
|||||||
include './base'
|
include './base'
|
||||||
include './vecfold'
|
include './vecfold'
|
||||||
|
|
||||||
if_inline (hasarch{'SSE2'}) {
|
|
||||||
fn sum_vec{T}(v:T) = vfold{+, fold{+, mzip128{v, T**0}}}
|
|
||||||
def fold_addw{v:T=[_]E if E<=u32} = sum_vec{T}(v)
|
|
||||||
}
|
|
||||||
|
|
||||||
def inc{ptr:*T, ind, v} = store{ptr, ind, trunc{T,v} + load{ptr, ind}}
|
def inc{ptr:*T, ind, v} = store{ptr, ind, trunc{T,v} + load{ptr, ind}}
|
||||||
def inc{ptr, ind} = inc{ptr, ind, 1}
|
def inc{ptr, ind} = inc{ptr, ind, 1}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user