search for: _asm

Displaying 4 results from an estimated 4 matches for "_asm".

Did you mean: __asm
2007 Feb 03
0
need help with MSVC
...like the plague. > 2nd, I need an equivalent for lround() (or round() is ok), which > is not in MSVC6's math.h or anywhere else I could find. The operation of lround() is basically the same as lrint(). In src/float_cast.h I have: __inline long int lrint (double flt) { int intgr ; _asm { fld flt fistp intgr } ; return intgr ; } __inline long int lrintf (float flt) { int intgr ; _asm { fld flt fistp intgr } ; return intgr ; } Hope this helps, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +------------...
2007 Feb 03
3
need help with MSVC
for recent code changes I find myself needing some workarounds for MSVC6: 1st, I need a fast way to swap bytes (for endianness) of a 32-bit int. I could not find a builtin like bswap; the closest thing I found was ntohl() which appears to be a function call and also requires linking with winsock2 (ws2_32.lib) to get it. 2nd, I need an equivalent for lround() (or round() is ok), which is not in
2007 Sep 28
2
[LLVMdev] Vector troubles
Hola LLVMers, I'm working on engaging SSE via the LLVM vector ops on x86. I had some questions a while back that you all helped out on, but I'm seeing similar issues and was hoping you'd have some ideas. Below is the dump of the LLVM IR of a program which is designed to take a vector stored in a float*, build an LLVM vector from it, copy it to another vector, and then take it
2004 Aug 06
2
[PATCH] Make SSE Run Time option. Add Win32 SSE code
...and speex_encoder_ctl It does this twofold. First there is a modification to the configure.in script which introduces a check based upon platform. It will compile in the sse assembly if you are on an i?86 based platform by making a special define. Second, it adds a new ctl value called SPEEX_SET_ASM_FLAG which takes in an integer. The values are defined as: #define SPEEX_SET_ASM_FLAG 200 #define SPEEX_ASM_MMX_NONE 0 #define SPEEX_ASM_MMX_BASIC 1 #define SPEEX_ASM_MMX_SSE 2 #define SPEEX_ASM_MMX_SSE_FP 4 The current Speex SSE code requi...