From: Steve H. <S.W...@ec...> - 2002-11-24 00:24:14
|
On Sat, Nov 23, 2002 at 10:00:21 +0100, Christian Schoenebeck wrote: > Is there a reason that int types were always used for actually bool types or > is it just some kind of habit? Ints are generally the fastest types to access, so using them for bools makes sense. > Is there any benefit of using this double_to_int() function [audiovoice.cpp] > and the asm code in it, instead of a normal type cast? Casting to int rounds down to the nearest int (which isn't always what you want) and is very slow on x86. It reuires flushing the register stack reseting the fpunit's parameters, doing the conversion, flushing the stack... The other questions are specific to evo, so I cant help you there. - Steve |