Skip to content

error C2169: "_mm_set_epi64x": intrinsic function, cannot be defined #11

Open
@robinchrist

Description

@robinchrist

Project Files were generated with CMake for Visual Studio 14 2015.
Project File clRNG.sln. Building the Target "ALL_BUILD" fails because clRNG was not built before.
Building the "clRNG" Project fails with

1>------ Erstellen gestartet: Projekt: clRNG, Konfiguration: Debug Win32 ------
1>  philox432.c
1>d:\clrng\src\include\clrng\private\random123\features/sse.h(98): error C2169: "_mm_set_epi64x": Systeminterne Funktion kann nicht definiert werden

The code in the header file is

#if (defined(__ICC) && __ICC<1210) || (defined(_MSC_VER) && !defined(_WIN64))
/* Is there an intrinsic to assemble an __m128i from two 64-bit words? 
   If not, use the 4x32-bit intrisic instead.  N.B.  It looks like Intel
   added _mm_set_epi64x to icc version 12.1 in Jan 2012.
*/
R123_STATIC_INLINE __m128i _mm_set_epi64x(uint64_t v1, uint64_t v0){
    union{
        uint64_t u64;
        uint32_t u32[2];
    } u1, u0;
    u1.u64 = v1;
    u0.u64 = v0;
    return _mm_set_epi32(u1.u32[1], u1.u32[0], u0.u32[1], u0.u32[0]);
}
#endif

Is it me or is it clRNG?
Platform Win 10 x64, Visual Studio 2015 (Configuration "Visual Studio 14 2015" is right, "Visual Studio 2015" won't work).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions