X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_misc.h;h=30277e3f6c160b23ed32f8afecda1c328028cab6;hb=ebdd6c955271e784cef9cb4019e1e81f4ec3810e;hp=33d02b3fa206a177eda292a1e7fe258b39efa19d;hpb=29bc5853be7221a692fe89d9f0ddbd1de7f50299;p=synfig.git diff --git a/ETL/trunk/ETL/_misc.h b/ETL/trunk/ETL/_misc.h index 33d02b3..30277e3 100644 --- a/ETL/trunk/ETL/_misc.h +++ b/ETL/trunk/ETL/_misc.h @@ -71,10 +71,12 @@ binary_find(I begin, I end, const T& value) #endif } -/*! \fixme Isn't there some x86 FPU instruction for quickly -** converting a float to a rounded integer? It's worth -** looking into at some point... */ -inline int round_to_int(const float x) { return static_cast(x+0.5f); } +inline int round_to_int(const float x) { + /*! \fixme Isn't there some x86 FPU instruction for quickly + ** converting a float to a rounded integer? It's worth + ** looking into at some point... */ + return static_cast(x+0.5f); +} inline int round_to_int(const double x) { return static_cast(x+0.5); } inline int ceil_to_int(const float x) { return static_cast(ceil(x)); }