c++ - Recapture const-ness on variables in a parallel section -


i have following code:

const w = (f.isunit() ? u : modq.multiply(m_pre_2_3q, u));  const integer t = modp.multiply(modp.exponentiate(v, 3), eh); const x = (f.isunit() ? t : modp.multiply(m_pre_2_9p, t)); 

when converted openmp, const-ness lost:

integer w, x; #pragma omp parallel sections {     #pragma omp section     {         w = (f.isunit() ? u : modq.multiply(m_pre_2_3q, u));     }      #pragma omp section     {         const integer t = modp.multiply(modp.exponentiate(v, 3), eh);         x = (f.isunit() ? t : modp.multiply(m_pre_2_9p, t));     } } 

how recapture const-ness on w , x when appear in parallel sections?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -