⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a.32.1.c

📁 用于进行gcc测试
💻 C
字号:
/* { dg-do compile } *//* { dg-require-effective-target tls_native } */#include <stdlib.h>float *work;int size;float tol;void build (void);#pragma omp threadprivate(work,size,tol)voida32 (float t, int n){  tol = t;  size = n;#pragma omp parallel copyin(tol,size)  {    build ();  }}voidbuild (){  int i;  work = (float *) malloc (sizeof (float) * size);  for (i = 0; i < size; ++i)    work[i] = tol;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -