Browse Source

simplify calls to round()

richarddobson 1 month ago
parent
commit
440dbb668c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dev/blur/blur.c

+ 2 - 0
dev/blur/blur.c

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