mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-26 19:30:21 +00:00
18 lines
505 B
C++
18 lines
505 B
C++
#include <altivec.h>
|
|
int main(int argc, char* argv[])
|
|
{
|
|
__vector unsigned long long x = {1,2};
|
|
__vector unsigned long long y = {3,4};
|
|
|
|
#if defined(__ibmxl__) || (defined(_AIX) && defined(__xlC__))
|
|
__vector unsigned long long z=__vpmsumd(x,y);
|
|
#elif defined(__clang__)
|
|
__vector unsigned long long z=__builtin_altivec_crypto_vpmsumd(x,y);
|
|
#elif defined(__GNUC__)
|
|
__vector unsigned long long z=__builtin_crypto_vpmsumd(x,y);
|
|
#else
|
|
int XXX[-1];
|
|
#endif
|
|
return 0;
|
|
}
|