Code: Select all
-DSTREFLOP_X87
just asking:
should/can it be used there aswell?
Moderator: Moderators
Code: Select all
-DSTREFLOP_X87
Maybe it's easiest for now to copy the relevant code from streflop for now:hoijui wrote:hmm... so!?!?
can someone do it pls? (add the streflop flag for GlocalAIs)
who would i have to ask?
first, i dont know how to do it(looked into it once, did not get it). second, i have no submit rights.
Code: Select all
#ifdef _MSC_VER
#define STREFLOP_FSTCW(cw) do { short tmp; __asm { fstcw tmp }; (cw) = tmp; } while (0)
#define STREFLOP_FLDCW(cw) do { short tmp = (cw); __asm { fclex }; __asm { fldcw tmp }; } while (0)
#else
#define STREFLOP_FSTCW(cw) do { asm volatile ("fstcw %0" : "=m" (cw) : ); } while (0)
#define STREFLOP_FLDCW(cw) do { asm volatile ("fclex \n fldcw %0" : : "m" (cw)); } while (0)
#endif
/// Initialize the FPU for the different types
/// this may also be called to switch between code sections using
/// different precisions
inline void streflop_init() {
unsigned short fpu_mode;
STREFLOP_FSTCW(fpu_mode);
fpu_mode &= 0xFCFF; // 32 bits internal operations
STREFLOP_FLDCW(fpu_mode);
}
What do you mean? Adding -I<insert every possible directory here> to compiler commandline? If so, I think that's a bad idea.it would also be nice, if GlobalAIs could have header files in all subfolders, but maybe someone would have problems with that.. if you dont think so.. make it possible too pls.
Doneand ..
it would also be nice if the cheefs here could help me change the 3 things in the svn that i need, for SWIG to be able to generate successfully.
- Command.h (a very small cosmetic change, to be found in patch 0000655)
- CommandQueue.h (also a very small change, moving a struct from private to public, also in patch 0000655)
- UnitDef.h add no-arg consttructor to UnitDef::UnitDefWeapon (reason can be foudn here: http://spring.clan-sy.com/phpbb/viewtop ... 8&start=60)
dann haett ich auch noch gern 'n bier und eine kippenschachtel!
..right :DTobi wrote: Adding -I<insert every possible directory here> to compiler commandline? I think that's a bad idea.