Defines |
| #define | CHECK_SM(x, bits) ASSERT_DEBUG(((x)>>bits)==0) |
| #define | CHECK_UM(x, bits) ASSERT_DEBUG(((x)>>bits)==0) |
| #define | CHECK_TC(x, bits) ASSERT_DEBUG(((x)>>(bits-1))==((x)<0?-1:0)) |
| #define | CHECK_FL(x, bits) ASSERT_DEBUG(((x)>>bits)==0) |
| #define | CHECK_UNSIGNED(x, bits) ASSERT_DEBUG(((x)>>bits)==0) |
Detailed Description
Macros for checking the range of variables used within the codec algorithm. They are also useful as they indicate the type of the variable being checked.
Define Documentation
| #define CHECK_SM |
( |
x, |
|
|
bits |
|
) |
ASSERT_DEBUG(((x)>>bits)==0) |
Check that a signed magnitude value lies entirely withing the given number of bits
- Parameters:
-
| x | The value |
| bits | Number of bits |
Definition at line 56 of file G726.cpp.
| #define CHECK_UM |
( |
x, |
|
|
bits |
|
) |
ASSERT_DEBUG(((x)>>bits)==0) |
Check that a unsigned magnitude value lies entirely withing the given number of bits
- Parameters:
-
| x | The value |
| bits | Number of bits |
Definition at line 63 of file G726.cpp.
| #define CHECK_TC |
( |
x, |
|
|
bits |
|
) |
ASSERT_DEBUG(((x)>>(bits-1))==((x)<0?-1:0)) |
Check that a twos compliment value lies entirely withing the given number of bits
- Parameters:
-
| x | The value |
| bits | Number of bits |
Definition at line 70 of file G726.cpp.
| #define CHECK_FL |
( |
x, |
|
|
bits |
|
) |
ASSERT_DEBUG(((x)>>bits)==0) |
Check that a float value lies entirely withing the given number of bits
- Parameters:
-
| x | The value |
| bits | Number of bits |
Definition at line 77 of file G726.cpp.
| #define CHECK_UNSIGNED |
( |
x, |
|
|
bits |
|
) |
ASSERT_DEBUG(((x)>>bits)==0) |
Check that an unsigned integer value lies entirely withing the given number of bits
- Parameters:
-
| x | The value |
| bits | Number of bits |
Definition at line 84 of file G726.cpp.