would some kind soul please translate this g++ inline asm snippit to one compatable with Borland bcc32 ver 5.5
Thank you
James
Code:void set_fpu (unsigned int mode) { asm ("fldcw %0" : : "m" (*&mode)); }
would some kind soul please translate this g++ inline asm snippit to one compatable with Borland bcc32 ver 5.5
Thank you
James
Code:void set_fpu (unsigned int mode) { asm ("fldcw %0" : : "m" (*&mode)); }
It loads word (16-bit) and your variable "mode" is 32-bit. Not that it doesn't work, but you have to be careful.
Try this:
Code:void set_fpu(unsigned short mode) { __asm { fldcw mode } }