|
103 | 103 | #include <string.h> |
104 | 104 | #endif |
105 | 105 | #include <math.h> |
| 106 | +#include <cdio/bytesex.h> |
106 | 107 | #include <cdio/paranoia/cdda.h> |
107 | 108 | #include "../cdda_interface/smallft.h" |
108 | 109 | #include <cdio/paranoia/version.h> |
@@ -140,31 +141,31 @@ const char *paranoia_cb_mode2str[] = { |
140 | 141 | paranoia_mode_t debug_paranoia_mode; |
141 | 142 | paranoia_cb_mode_t debug_paranoia_cb_mode; |
142 | 143 |
|
143 | | -static inline long |
| 144 | +static CDIO_INLINE long |
144 | 145 | re(root_block *root) |
145 | 146 | { |
146 | 147 | if (!root)return(-1); |
147 | 148 | if (!root->vector)return(-1); |
148 | 149 | return(ce(root->vector)); |
149 | 150 | } |
150 | 151 |
|
151 | | -static inline long |
| 152 | +static CDIO_INLINE long |
152 | 153 | rb(root_block *root) |
153 | 154 | { |
154 | 155 | if (!root)return(-1); |
155 | 156 | if (!root->vector)return(-1); |
156 | 157 | return(cb(root->vector)); |
157 | 158 | } |
158 | 159 |
|
159 | | -static inline |
| 160 | +static CDIO_INLINE |
160 | 161 | long rs(root_block *root) |
161 | 162 | { |
162 | 163 | if (!root)return(-1); |
163 | 164 | if (!root->vector)return(-1); |
164 | 165 | return(cs(root->vector)); |
165 | 166 | } |
166 | 167 |
|
167 | | -static inline int16_t * |
| 168 | +static CDIO_INLINE int16_t * |
168 | 169 | rv(root_block *root){ |
169 | 170 | if (!root)return(NULL); |
170 | 171 | if (!root->vector)return(NULL); |
@@ -206,7 +207,7 @@ enum { |
206 | 207 | * If (ret_begin) or (ret_end) are not NULL, it fills them with the |
207 | 208 | * offsets of the first and last matching samples in A. |
208 | 209 | */ |
209 | | -static inline long |
| 210 | +static CDIO_INLINE long |
210 | 211 | i_paranoia_overlap(int16_t *buffA,int16_t *buffB, |
211 | 212 | long offsetA, long offsetB, |
212 | 213 | long sizeA,long sizeB, |
@@ -248,7 +249,7 @@ i_paranoia_overlap(int16_t *buffA,int16_t *buffB, |
248 | 249 | * If (ret_begin) or (ret_end) are not NULL, it fills them with the |
249 | 250 | * offsets of the first and last matching samples in A. |
250 | 251 | */ |
251 | | -static inline long |
| 252 | +static CDIO_INLINE long |
252 | 253 | i_paranoia_overlap2(int16_t *buffA,int16_t *buffB, |
253 | 254 | unsigned char *flagsA, |
254 | 255 | unsigned char *flagsB, |
@@ -327,7 +328,7 @@ i_paranoia_overlap2(int16_t *buffA,int16_t *buffB, |
327 | 328 | * (I.e., offset indicates the distance between what A considers sample N |
328 | 329 | * on the CD and what B considers sample N.) |
329 | 330 | */ |
330 | | -static inline long int |
| 331 | +static CDIO_INLINE long int |
331 | 332 | do_const_sync(c_block_t *A, |
332 | 333 | sort_info_t *B, |
333 | 334 | unsigned char *flagB, |
@@ -397,7 +398,7 @@ do_const_sync(c_block_t *A, |
397 | 398 | post from root. Begin, end, offset count from B's frame of |
398 | 399 | reference */ |
399 | 400 |
|
400 | | -static inline long int |
| 401 | +static CDIO_INLINE long int |
401 | 402 | try_sort_sync(cdrom_paranoia_t *p, |
402 | 403 | sort_info_t *A, unsigned char *Aflags, |
403 | 404 | c_block_t *B, |
@@ -548,7 +549,7 @@ afterward. */ |
548 | 549 | * into the verified root (and its absolute position determined) in |
549 | 550 | * stage 2. |
550 | 551 | */ |
551 | | -static inline void |
| 552 | +static CDIO_INLINE void |
552 | 553 | stage1_matched(c_block_t *old, c_block_t *new, |
553 | 554 | long matchbegin,long matchend, |
554 | 555 | long matchoffset, |
|
0 commit comments