mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 15:55:37 +00:00
reverted changes
This commit is contained in:
parent
ceb8b374da
commit
55a55660cb
@ -30,6 +30,11 @@
|
||||
// Using SVE ACLE
|
||||
/////////////////////////////////////////////////////
|
||||
|
||||
/* TODO
|
||||
* Exchange
|
||||
* prefetching
|
||||
*/
|
||||
|
||||
//#ifndef GEN_SIMD_WIDTH
|
||||
//#define GEN_SIMD_WIDTH 64u
|
||||
//#endif
|
||||
@ -436,12 +441,12 @@ struct PrecisionChange {
|
||||
vecf sb_v = svcvt_f32_x(pg1d, b);
|
||||
return svuzp1(sa_v, sb_v);
|
||||
}
|
||||
static inline void StoD (vecf s,vecd *a,vecd *b) {
|
||||
static inline void StoD (vecf s,vecd &a,vecd &b) {
|
||||
pred pg1d = acle<double>::pg1();
|
||||
vecf sa_v = svzip1(s, s);
|
||||
vecf sb_v = svzip2(s, s);
|
||||
*a = svcvt_f64_x(pg1d, sa_v);
|
||||
*b = svcvt_f64_x(pg1d, sb_v);
|
||||
a = svcvt_f64_x(pg1d, sa_v);
|
||||
b = svcvt_f64_x(pg1d, sb_v);
|
||||
}
|
||||
static inline vech DtoH (vecd a,vecd b,vecd c,vecd d) {
|
||||
/*
|
||||
|
@ -958,6 +958,7 @@ accelerator_inline void precisionChange(vRealD *out,vRealF *in,int nvec)
|
||||
assert((nvec&0x1)==0);
|
||||
for(int m=0;m*2<nvec;m++){
|
||||
int n=m*2;
|
||||
Optimization::PrecisionChange::StoD(in[m].v,out[n].v,out[n+1].v);
|
||||
// A64FXFIXEDSIZE FIXME
|
||||
// function call results in compile-time error:
|
||||
// In function ‘void Grid::precisionChange(Grid::vRealD*, Grid::vRealF*, int)’:
|
||||
@ -966,8 +967,6 @@ accelerator_inline void precisionChange(vRealD *out,vRealF *in,int nvec)
|
||||
// to an rvalue of type ‘vecd’ {aka ‘svfloat64_t’}
|
||||
// 961 | Optimization::PrecisionChange::StoD(in[m].v,out[n].v,out[n+1].v);
|
||||
// | ~~~~~~~^
|
||||
// Optimization::PrecisionChange::StoD(in[m].v,out[n].v,out[n+1].v);
|
||||
Optimization::PrecisionChange::StoD(in[m].v,&out[n].v,&out[n+1].v);
|
||||
}
|
||||
}
|
||||
accelerator_inline void precisionChange(vRealD *out,vRealH *in,int nvec)
|
||||
|
Loading…
Reference in New Issue
Block a user