add CMakeList.txt. build windows binary by using vs2019. (#1134)
* add CMakeList.txt. build windows binary by using vs2019. * remove macro redefinition warning. * add nmake.bat. * update CMakeLists.txt. build successfully on Ubuntu-1804-amd64. * add CMakeList.txt. build windows binary by using vs2019. * remove macro redefinition warning. * add nmake.bat. * update CMakeLists.txt. build successfully on Ubuntu-1804-amd64. * Add build specific arch option. * fix old MSVC inline and mipsel macro. * add install target and option of embeded MSVCRT lib. * add cmake.sh and document. * add xwings and chenhuitao as programmer. * fix COMPILE-CMAKE. rename txt to md.
This commit is contained in:

committed by
Nguyen Anh Quynh

parent
8987ad0fff
commit
60896de9f4
@ -24,8 +24,15 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* gcc __builtin___clear_cache() */
|
||||
static inline void __builtin___clear_cache(void *beg, void *e)
|
||||
{
|
||||
unsigned char *start = beg;
|
||||
unsigned char *end = e;
|
||||
FlushInstructionCache(GetCurrentProcess(), start, end - start);
|
||||
}
|
||||
|
||||
static double rint( double x )
|
||||
static inline double rint( double x )
|
||||
{
|
||||
return floor(x < 0 ? x - 0.5 : x + 0.5);
|
||||
}
|
||||
|
Reference in New Issue
Block a user