在启动时传递MPIR-数量众多的mpz_t. [英] Passing an MPIR - numerious mpz_t to thread at start.

查看:85
本文介绍了在启动时传递MPIR-数量众多的mpz_t.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不会发布所有尝试将mpz_t传递给线程的组合,在过去的三天内,太多了.

I will not post all the combinations I have gone thru to try and pass mpz_t to a thread at start, there has just been too many in the last three days.

type struct
{
int _mp_alloc;

int _mp_size;
} __mpz_struct;

typedef __mpz_struct mpz_t;

推荐答案

我认为以下代码无法正确编译:

I don't think the following code compiles correctly:

r_d_test = dist;
r_d_rad = rad;

r_d_test = dist;
r_d_rad = rad;

r_d_test和r_d_rad是指针,而dist和rad是值.您的示例中是否缺少某些内容?

r_d_test and r_d_rad are pointers while dist and rad are values. Is there something missing in your example?


这篇关于在启动时传递MPIR-数量众多的mpz_t.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆