blob: 66b824f55d977f5a4af2ff5b9fc26519dfb2b640 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
From 3a0c554bee54fdcaa9a51616175e55f0b3824e39 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 26 Jul 2016 15:14:15 +0000
Subject: [PATCH] mod_avmd: use posix isinf
---
src/mod/applications/mod_avmd/avmd_desa2_tweaked.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c b/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
index 8eae175..57c1206 100644
--- a/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
+++ b/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
@@ -4,12 +4,6 @@
#include <stdio.h>
#ifdef WIN32
#include <float.h>
-#define ISNAN(x) (!!(_isnan(x)))
-#define ISINF(x) (isinf(x))
-#else
-int __isnan(double);
-#define ISNAN(x) (__isnan(x))
-#define ISINF(x) (__isinf(x))
#endif
#include "avmd_buffer.h"
#include "avmd_desa2_tweaked.h"
@@ -51,7 +45,7 @@ avmd_desa2_tweaked(circ_buffer_t *b, size_t i)
we do simplified, modified for speed version : */
result = n/d;
- if (ISINF(result)) {
+ if (isinf(result)) {
if (n < 0.0)
return -10.0;
else
--
2.9.1
|