瀏覽代碼

simplify calls to round()

richarddobson 1 月之前
父節點
當前提交
440dbb668c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dev/blur/blur.c

+ 2 - 0
dev/blur/blur.c

@@ -42,6 +42,8 @@
 #include <string.h>
 #include <string.h>
 #include <blur.h>
 #include <blur.h>
 
 
+#define round(x) lround((x))
+
 #define FIRST_ACCESS_OF_RANDTABLE_REACHES_END_FIRST   (1)
 #define FIRST_ACCESS_OF_RANDTABLE_REACHES_END_FIRST   (1)
 #define SECOND_ACCESS_OF_RANDTABLE_REACHES_END_FIRST  (2)
 #define SECOND_ACCESS_OF_RANDTABLE_REACHES_END_FIRST  (2)
 #define BOTH_ACCESSES_OF_RANDTABLE_REACH_END_TOGETHER (0)
 #define BOTH_ACCESSES_OF_RANDTABLE_REACH_END_TOGETHER (0)