From 05444e81357c5f8053795e270b57453b0a6e3e65 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Dec 2015 18:36:45 +0100 Subject: command: replace ROUND() with lrint() lrint() pretty much does what ROUND() is supposed to do, but it's more precise. --- common/common.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'common/common.h') diff --git a/common/common.h b/common/common.h index cc7093a4fc..7312b85ec8 100644 --- a/common/common.h +++ b/common/common.h @@ -32,8 +32,6 @@ #define MP_CONCAT_(a, b) a ## b #define MP_CONCAT(a, b) MP_CONCAT_(a, b) -#define ROUND(x) ((int)((x) < 0 ? (x) - 0.5 : (x) + 0.5)) - #define MPMAX(a, b) ((a) > (b) ? (a) : (b)) #define MPMIN(a, b) ((a) > (b) ? (b) : (a)) #define MPCLAMP(a, min, max) (((a) < (min)) ? (min) : (((a) > (max)) ? (max) : (a))) -- cgit v1.2.3