| OLD | NEW |
| 1 /*********************************************************************** | 1 /*********************************************************************** |
| 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. | 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. |
| 3 Copyright (C) 2012 Xiph.Org Foundation | 3 Copyright (C) 2012 Xiph.Org Foundation |
| 4 Redistribution and use in source and binary forms, with or without | 4 Redistribution and use in source and binary forms, with or without |
| 5 modification, are permitted provided that the following conditions | 5 modification, are permitted provided that the following conditions |
| 6 are met: | 6 are met: |
| 7 - Redistributions of source code must retain the above copyright notice, | 7 - Redistributions of source code must retain the above copyright notice, |
| 8 this list of conditions and the following disclaimer. | 8 this list of conditions and the following disclaimer. |
| 9 - Redistributions in binary form must reproduce the above copyright | 9 - Redistributions in binary form must reproduce the above copyright |
| 10 notice, this list of conditions and the following disclaimer in the | 10 notice, this list of conditions and the following disclaimer in the |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 } | 532 } |
| 533 return a32 / b32; | 533 return a32 / b32; |
| 534 } | 534 } |
| 535 | 535 |
| 536 /* no checking needed for silk_SAT8 | 536 /* no checking needed for silk_SAT8 |
| 537 no checking needed for silk_SAT16 | 537 no checking needed for silk_SAT16 |
| 538 no checking needed for silk_SAT32 | 538 no checking needed for silk_SAT32 |
| 539 no checking needed for silk_POS_SAT32 | 539 no checking needed for silk_POS_SAT32 |
| 540 no checking needed for silk_ADD_POS_SAT8 | 540 no checking needed for silk_ADD_POS_SAT8 |
| 541 no checking needed for silk_ADD_POS_SAT16 | 541 no checking needed for silk_ADD_POS_SAT16 |
| 542 no checking needed for silk_ADD_POS_SAT32 | 542 no checking needed for silk_ADD_POS_SAT32 */ |
| 543 no checking needed for silk_ADD_POS_SAT64 */ | |
| 544 | 543 |
| 545 #undef silk_LSHIFT8 | 544 #undef silk_LSHIFT8 |
| 546 #define silk_LSHIFT8(a,b) silk_LSHIFT8_((a), (b), __FILE__, __LINE__) | 545 #define silk_LSHIFT8(a,b) silk_LSHIFT8_((a), (b), __FILE__, __LINE__) |
| 547 static OPUS_INLINE opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *
file, int line){ | 546 static OPUS_INLINE opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *
file, int line){ |
| 548 opus_int8 ret; | 547 opus_int8 ret; |
| 549 int fail = 0; | 548 int fail = 0; |
| 550 ret = a << shift; | 549 ret = a << shift; |
| 551 fail |= shift < 0; | 550 fail |= shift < 0; |
| 552 fail |= shift >= 8; | 551 fail |= shift >= 8; |
| 553 fail |= (opus_int64)ret != ((opus_int64)a) << shift; | 552 fail |= (opus_int64)ret != ((opus_int64)a) << shift; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 | 942 |
| 944 /* no checking for silk_NSHIFT_MUL_32_32 | 943 /* no checking for silk_NSHIFT_MUL_32_32 |
| 945 no checking for silk_NSHIFT_MUL_16_16 | 944 no checking for silk_NSHIFT_MUL_16_16 |
| 946 no checking needed for silk_min | 945 no checking needed for silk_min |
| 947 no checking needed for silk_max | 946 no checking needed for silk_max |
| 948 no checking needed for silk_sign | 947 no checking needed for silk_sign |
| 949 */ | 948 */ |
| 950 | 949 |
| 951 #endif | 950 #endif |
| 952 #endif /* MACRO_DEBUG_H */ | 951 #endif /* MACRO_DEBUG_H */ |
| OLD | NEW |