-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflac.c.patch
99 lines (92 loc) · 2.93 KB
/
flac.c.patch
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
--- src/flac.c 2020-05-19 19:17:08.234706931 +0200
+++ src/flac-fixed.c 2020-05-19 19:33:33.401411107 +0200
@@ -1160,12 +1160,12 @@
while (--count >= 0)
{ scaled_value = src [count] * normfact ;
- if (CPU_CLIPS_POSITIVE == 0 && scaled_value >= (1.0 * 0x7F))
+ if (scaled_value >= (1.0 * 0x7F))
{ dest [count] = 0x7F ;
continue ;
} ;
- if (CPU_CLIPS_NEGATIVE == 0 && scaled_value <= (-8.0 * 0x10))
- { dest [count] = 0x80 ;
+ if (scaled_value <= (-8.0 * 0x10))
+ { dest [count] = -0x80 ;
continue ;
} ;
dest [count] = lrintf (scaled_value) ;
@@ -1182,12 +1182,12 @@
while (--count >= 0)
{ scaled_value = src [count] * normfact ;
- if (CPU_CLIPS_POSITIVE == 0 && scaled_value >= (1.0 * 0x7FFF))
+ if (scaled_value >= (1.0 * 0x7FFF))
{ dest [count] = 0x7FFF ;
continue ;
} ;
- if (CPU_CLIPS_NEGATIVE == 0 && scaled_value <= (-8.0 * 0x1000))
- { dest [count] = 0x8000 ;
+ if (scaled_value <= (-8.0 * 0x1000))
+ { dest [count] = -0x8000 ;
continue ;
} ;
dest [count] = lrintf (scaled_value) ;
@@ -1202,13 +1202,13 @@
while (--count >= 0)
{ scaled_value = src [count] * normfact ;
- if (CPU_CLIPS_POSITIVE == 0 && scaled_value >= (1.0 * 0x7FFFFF))
+ if (scaled_value >= (1.0 * 0x7FFFFF))
{ dest [count] = 0x7FFFFF ;
continue ;
} ;
- if (CPU_CLIPS_NEGATIVE == 0 && scaled_value <= (-8.0 * 0x100000))
- { dest [count] = 0x800000 ;
+ if (scaled_value <= (-8.0 * 0x100000))
+ { dest [count] = -0x800000 ;
continue ;
}
dest [count] = lrintf (scaled_value) ;
@@ -1291,12 +1291,12 @@
while (--count >= 0)
{ scaled_value = src [count] * normfact ;
- if (CPU_CLIPS_POSITIVE == 0 && scaled_value >= (1.0 * 0x7F))
+ if (scaled_value >= (1.0 * 0x7F))
{ dest [count] = 0x7F ;
continue ;
} ;
- if (CPU_CLIPS_NEGATIVE == 0 && scaled_value <= (-8.0 * 0x10))
- { dest [count] = 0x80 ;
+ if (scaled_value <= (-8.0 * 0x10))
+ { dest [count] = -0x80 ;
continue ;
} ;
dest [count] = lrint (scaled_value) ;
@@ -1313,12 +1313,12 @@
while (--count >= 0)
{ scaled_value = src [count] * normfact ;
- if (CPU_CLIPS_POSITIVE == 0 && scaled_value >= (1.0 * 0x7FFF))
+ if (scaled_value >= (1.0 * 0x7FFF))
{ dest [count] = 0x7FFF ;
continue ;
} ;
- if (CPU_CLIPS_NEGATIVE == 0 && scaled_value <= (-8.0 * 0x1000))
- { dest [count] = 0x8000 ;
+ if (scaled_value <= (-8.0 * 0x1000))
+ { dest [count] = -0x8000 ;
continue ;
} ;
dest [count] = lrint (scaled_value) ;
@@ -1335,12 +1335,12 @@
while (--count >= 0)
{ scaled_value = src [count] * normfact ;
- if (CPU_CLIPS_POSITIVE == 0 && scaled_value >= (1.0 * 0x7FFFFF))
+ if (scaled_value >= (1.0 * 0x7FFFFF))
{ dest [count] = 0x7FFFFF ;
continue ;
} ;
- if (CPU_CLIPS_NEGATIVE == 0 && scaled_value <= (-8.0 * 0x100000))
- { dest [count] = 0x800000 ;
+ if (scaled_value <= (-8.0 * 0x100000))
+ { dest [count] = -0x800000 ;
continue ;
} ;
dest [count] = lrint (scaled_value) ;