本文介绍了GCC替代的Linux支持OpenMP和128位整数带+, - ,*,/和%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用OpenMP和128位的整数一个C code。对于128位的整数,我使用的海湾合作​​委员会提供的__int128_t和__uint128_t扩展。我在寻找的任何的其他编译器,也可以编译这种code的。

I have a C code that uses OpenMP and 128-bit integers. For the 128-bit integers, I'm using the __int128_t and __uint128_t extensions provided by GCC. I'm looking for any other compiler that can also compile this kind of code.

铛支持__uint128_t,但不是OpenMP的。 ICC支持OpenMP的,但不是128位的整数(at至少不是的,你可以使用内置的运营商如+, - ,*,/和%含)。该本身不支持128位运算。

Clang supports __uint128_t, but not OpenMP. ICC supports OpenMP, but not 128-bit integers (at least not ones that you can use built-in operators like +, -, *, /, and % with). The Portland Group C Compiler doesn't natively support 128-bit arithmetic.

只是要清楚,我正在寻找128位的整数类似于__int128_t这项工作作为直接替代为正常的整数。是否有任何编译器Linux版除了支持OpenMP和128位的整数,内置运营商GCC +, - ,*,/和%

Just to be clear, I'm looking for 128-bit integers analogous to __int128_t that work as drop-in replacements for "normal" integers. Is there any compiler for Linux besides GCC that supports OpenMP and 128-bit integers, with the built-in operators +, -, *, /, and %?

推荐答案

ICC不支持与版本12(当这个问题被张贴)__int128_t,但支持的与版本13日起加入,请参见:128-bit整数支持+, - ,*,/和%,在英特尔C编译器

ICC didn't support __int128_t with version 12 (when this question was posted), but supported was added with versions 13 onwards, see: 128-bit integers supporting +, -, *, /, and % in the Intel C Compiler?

这篇关于GCC替代的Linux支持OpenMP和128位整数带+, - ,*,/和%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 08:33