How to get VS2013 to stop generating calls to __dtol3, __dtoui3, and other functions for casting between integer types?

后端 未结 3 999
小鲜肉
小鲜肉 2020-12-31 19:06

I am in the process of upgrading a Visual Studio 2010 project that targets the INtime RTOS. Code that performs casting operations fail to link. When investigating the \"in

3条回答
  •  灰色年华
    2020-12-31 19:27

    Try create one of them __dtol3, __dtoui3, __dtoul3, __ltod3, and __ultod3, for ex.

    extern "C" unsigned int _dtoui3(const double x) {
         return (unsigned int) _mm_cvttsd_si32 (_mm_set_sd(x));
    }
    

    Make function externally visible and implement in one file.

    Some info

提交回复
热议问题