|
269 | 269 | #endif /* ipconfigUSE_TCP_WIN */ |
270 | 270 | /*-----------------------------------------------------------*/ |
271 | 271 |
|
272 | | - #if ( ipconfigUSE_TCP_WIN == 1 ) |
273 | | - static portINLINE BaseType_t xSequenceLessThan( uint32_t a, |
274 | | - uint32_t b ); |
275 | | - |
276 | 272 | /** |
277 | 273 | * @brief Check if a < b. |
278 | 274 | * |
|
281 | 277 | * |
282 | 278 | * @return pdTRUE when "( b - ( a + 1 ) ) < 0x80000000", else pdFALSE. |
283 | 279 | */ |
284 | | - static portINLINE BaseType_t xSequenceLessThan( uint32_t a, |
285 | | - uint32_t b ) |
286 | | - { |
287 | | - BaseType_t xResult; |
288 | | - |
289 | | - /* Test if a < b */ |
290 | | - if( ( ( b - ( a + 1UL ) ) & 0x80000000UL ) == 0UL ) |
291 | | - { |
292 | | - xResult = pdTRUE; |
293 | | - } |
294 | | - else |
295 | | - { |
296 | | - xResult = pdFALSE; |
297 | | - } |
| 280 | + BaseType_t xSequenceLessThan( uint32_t a, |
| 281 | + uint32_t b ) |
| 282 | + { |
| 283 | + BaseType_t xResult; |
298 | 284 |
|
299 | | - return xResult; |
| 285 | + /* Test if a < b */ |
| 286 | + if( ( ( b - ( a + 1UL ) ) & 0x80000000UL ) == 0UL ) |
| 287 | + { |
| 288 | + xResult = pdTRUE; |
| 289 | + } |
| 290 | + else |
| 291 | + { |
| 292 | + xResult = pdFALSE; |
300 | 293 | } |
301 | 294 |
|
302 | | - #endif /* ipconfigUSE_TCP_WIN */ |
303 | | -/*-----------------------------------------------------------*/ |
| 295 | + return xResult; |
| 296 | + } |
304 | 297 |
|
305 | | - #if ( ipconfigUSE_TCP_WIN == 1 ) |
306 | | - static portINLINE BaseType_t xSequenceGreaterThan( uint32_t a, |
307 | | - uint32_t b ); |
| 298 | +/*-----------------------------------------------------------*/ |
308 | 299 |
|
309 | 300 | /** |
310 | 301 | * @brief Check if a > b. |
|
314 | 305 | * |
315 | 306 | * @return pdTRUE when "( a - b ) < 0x80000000", else pdFALSE. |
316 | 307 | */ |
317 | | - static portINLINE BaseType_t xSequenceGreaterThan( uint32_t a, |
318 | | - uint32_t b ) |
319 | | - { |
320 | | - BaseType_t xResult; |
321 | | - |
322 | | - /* Test if a > b */ |
323 | | - if( ( ( a - ( b + 1UL ) ) & 0x80000000UL ) == 0UL ) |
324 | | - { |
325 | | - xResult = pdTRUE; |
326 | | - } |
327 | | - else |
328 | | - { |
329 | | - xResult = pdFALSE; |
330 | | - } |
| 308 | + BaseType_t xSequenceGreaterThan( uint32_t a, |
| 309 | + uint32_t b ) |
| 310 | + { |
| 311 | + BaseType_t xResult; |
331 | 312 |
|
332 | | - return xResult; |
| 313 | + /* Test if a > b */ |
| 314 | + if( ( ( a - ( b + 1UL ) ) & 0x80000000UL ) == 0UL ) |
| 315 | + { |
| 316 | + xResult = pdTRUE; |
| 317 | + } |
| 318 | + else |
| 319 | + { |
| 320 | + xResult = pdFALSE; |
333 | 321 | } |
334 | 322 |
|
335 | | - #endif /* ipconfigUSE_TCP_WIN */ |
| 323 | + return xResult; |
| 324 | + } |
| 325 | + |
336 | 326 |
|
337 | 327 | /*-----------------------------------------------------------*/ |
338 | 328 | static portINLINE BaseType_t xSequenceGreaterThanOrEqual( uint32_t a, |
|
0 commit comments