diff options
Diffstat (limited to 'source/blender/imbuf/intern/dds/PixelFormat.h')
-rw-r--r-- | source/blender/imbuf/intern/dds/PixelFormat.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/imbuf/intern/dds/PixelFormat.h b/source/blender/imbuf/intern/dds/PixelFormat.h index 07912b86f47..ba487afdfc1 100644 --- a/source/blender/imbuf/intern/dds/PixelFormat.h +++ b/source/blender/imbuf/intern/dds/PixelFormat.h @@ -112,17 +112,17 @@ inline float quantizeCeil(float f, int inbits, int outbits) } #if 0 - inline float quantizeRound(float f, int bits) - { - float scale = float(1 << bits); - return fround(f * scale) / scale; - } - - inline float quantizeFloor(float f, int bits) - { - float scale = float(1 << bits); - return floor(f * scale) / scale; - } +inline float quantizeRound(float f, int bits) +{ + float scale = float(1 << bits); + return fround(f * scale) / scale; +} + +inline float quantizeFloor(float f, int bits) +{ + float scale = float(1 << bits); + return floor(f * scale) / scale; +} #endif } // namespace PixelFormat |