• Home
  • Raw
  • Download

Lines Matching refs:a32

150 static OPUS_INLINE opus_int32 silk_ADD_SAT32_(opus_int32 a32, opus_int32 b32, char *file, int line){  in silk_ADD_SAT32_()  argument
152 res = ((((opus_uint32)(a32) + (opus_uint32)(b32)) & 0x80000000) == 0 ? \ in silk_ADD_SAT32_()
153 ((((a32) & (b32)) & 0x80000000) != 0 ? silk_int32_MIN : (a32)+(b32)) : \ in silk_ADD_SAT32_()
154 ((((a32) | (b32)) & 0x80000000) == 0 ? silk_int32_MAX : (a32)+(b32)) ); in silk_ADD_SAT32_()
155 if ( res != silk_SAT32( (opus_int64)a32 + (opus_int64)b32 ) ) in silk_ADD_SAT32_()
157 fprintf (stderr, "silk_ADD_SAT32(%d, %d) in %s: line %d\n", a32, b32, file, line); in silk_ADD_SAT32_()
211 static OPUS_INLINE opus_int32 silk_SUB_SAT32_( opus_int32 a32, opus_int32 b32, char *file, int line… in silk_SUB_SAT32_() argument
213 res = ((((opus_uint32)(a32)-(opus_uint32)(b32)) & 0x80000000) == 0 ? \ in silk_SUB_SAT32_()
214 (( (a32) & ((b32)^0x80000000) & 0x80000000) ? silk_int32_MIN : (a32)-(b32)) : \ in silk_SUB_SAT32_()
215 ((((a32)^0x80000000) & (b32) & 0x80000000) ? silk_int32_MAX : (a32)-(b32)) ); in silk_SUB_SAT32_()
216 if ( res != silk_SAT32( (opus_int64)a32 - (opus_int64)b32 ) ) in silk_SUB_SAT32_()
218 fprintf (stderr, "silk_SUB_SAT32(%d, %d) in %s: line %d\n", a32, b32, file, line); in silk_SUB_SAT32_()
257 static OPUS_INLINE opus_int32 silk_MUL_(opus_int32 a32, opus_int32 b32, char *file, int line){ in silk_MUL_() argument
260 ret = a32 * b32; in silk_MUL_()
261 ret64 = (opus_int64)a32 * (opus_int64)b32; in silk_MUL_()
264 fprintf (stderr, "silk_MUL(%d, %d) in %s: line %d\n", a32, b32, file, line); in silk_MUL_()
274 static OPUS_INLINE opus_uint32 silk_MUL_uint_(opus_uint32 a32, opus_uint32 b32, char *file, int lin… in silk_MUL_uint_() argument
276 ret = a32 * b32; in silk_MUL_uint_()
277 if ( (opus_uint64)ret != (opus_uint64)a32 * (opus_uint64)b32 ) in silk_MUL_uint_()
279 fprintf (stderr, "silk_MUL_uint(%u, %u) in %s: line %d\n", a32, b32, file, line); in silk_MUL_uint_()
289 static OPUS_INLINE opus_int32 silk_MLA_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file,… in silk_MLA_() argument
291 ret = a32 + b32 * c32; in silk_MLA_()
292 if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int64)c32 ) in silk_MLA_()
294 fprintf (stderr, "silk_MLA(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); in silk_MLA_()
304 static OPUS_INLINE opus_int32 silk_MLA_uint_(opus_uint32 a32, opus_uint32 b32, opus_uint32 c32, cha… in silk_MLA_uint_() argument
306 ret = a32 + b32 * c32; in silk_MLA_uint_()
307 if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int64)c32 ) in silk_MLA_uint_()
309 fprintf (stderr, "silk_MLA_uint(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); in silk_MLA_uint_()
319 static OPUS_INLINE opus_int32 silk_SMULWB_(opus_int32 a32, opus_int32 b32, char *file, int line){ in silk_SMULWB_() argument
321 …ret = (a32 >> 16) * (opus_int32)((opus_int16)b32) + (((a32 & 0x0000FFFF) * (opus_int32)((opus_int1… in silk_SMULWB_()
322 if ( (opus_int64)ret != ((opus_int64)a32 * (opus_int16)b32) >> 16 ) in silk_SMULWB_()
324 fprintf (stderr, "silk_SMULWB(%d, %d) in %s: line %d\n", a32, b32, file, line); in silk_SMULWB_()
334 static OPUS_INLINE opus_int32 silk_SMLAWB_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *fi… in silk_SMLAWB_() argument
336 ret = silk_ADD32( a32, silk_SMULWB( b32, c32 ) ); in silk_SMLAWB_()
337 …if ( silk_ADD32( a32, silk_SMULWB( b32, c32 ) ) != silk_ADD_SAT32( a32, silk_SMULWB( b32, c32 ) ) ) in silk_SMLAWB_()
339 fprintf (stderr, "silk_SMLAWB(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); in silk_SMLAWB_()
349 static OPUS_INLINE opus_int32 silk_SMULWT_(opus_int32 a32, opus_int32 b32, char *file, int line){ in silk_SMULWT_() argument
351 ret = (a32 >> 16) * (b32 >> 16) + (((a32 & 0x0000FFFF) * (b32 >> 16)) >> 16); in silk_SMULWT_()
352 if ( (opus_int64)ret != ((opus_int64)a32 * (b32 >> 16)) >> 16 ) in silk_SMULWT_()
354 fprintf (stderr, "silk_SMULWT(%d, %d) in %s: line %d\n", a32, b32, file, line); in silk_SMULWT_()
364 static OPUS_INLINE opus_int32 silk_SMLAWT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *fi… in silk_SMLAWT_() argument
366 ret = a32 + ((b32 >> 16) * (c32 >> 16)) + (((b32 & 0x0000FFFF) * ((c32 >> 16)) >> 16)); in silk_SMLAWT_()
367 if ( (opus_int64)ret != (opus_int64)a32 + (((opus_int64)b32 * (c32 >> 16)) >> 16) ) in silk_SMLAWT_()
369 fprintf (stderr, "silk_SMLAWT(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); in silk_SMLAWT_()
401 static OPUS_INLINE opus_int32 silk_SMLABB_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *fi… in silk_SMLABB_() argument
403 ret = a32 + (opus_int32)((opus_int16)b32) * (opus_int32)((opus_int16)c32); in silk_SMLABB_()
404 if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int16)c32 ) in silk_SMLABB_()
406 fprintf (stderr, "silk_SMLABB(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); in silk_SMLABB_()
417 static OPUS_INLINE opus_int32 silk_SMLABT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *fi… in silk_SMLABT_() argument
419 ret = a32 + ((opus_int32)((opus_int16)b32)) * (c32 >> 16); in silk_SMLABT_()
420 if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (c32 >> 16) ) in silk_SMLABT_()
422 fprintf (stderr, "silk_SMLABT(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); in silk_SMLABT_()
433 static OPUS_INLINE opus_int32 silk_SMLATT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *fi… in silk_SMLATT_() argument
435 ret = a32 + (b32 >> 16) * (c32 >> 16); in silk_SMLATT_()
436 if ( (opus_int64)ret != (opus_int64)a32 + (b32 >> 16) * (c32 >> 16) ) in silk_SMLATT_()
438 fprintf (stderr, "silk_SMLATT(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); in silk_SMLATT_()
448 static OPUS_INLINE opus_int32 silk_SMULWW_(opus_int32 a32, opus_int32 b32, char *file, int line){ in silk_SMULWW_() argument
453 ret = silk_SMULWB( a32, b32 ); in silk_SMULWW_()
455 tmp2 = silk_MUL( a32, tmp1 ); in silk_SMULWW_()
457 fail |= (opus_int64)tmp2 != (opus_int64) a32 * (opus_int64) tmp1; in silk_SMULWW_()
463 ret64 = silk_RSHIFT64( silk_SMULL( a32, b32 ), 16 ); in silk_SMULWW_()
468 fprintf (stderr, "silk_SMULWT(%d, %d) in %s: line %d\n", a32, b32, file, line); in silk_SMULWW_()
479 static OPUS_INLINE opus_int32 silk_SMLAWW_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *fi… in silk_SMLAWW_() argument
483 ret = silk_ADD32( a32, tmp ); in silk_SMLAWW_()
484 if ( ret != silk_ADD_SAT32( a32, tmp ) ) in silk_SMLAWW_()
486 fprintf (stderr, "silk_SMLAWW(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); in silk_SMLAWW_()
496 #define silk_MLA_ovflw(a32, b32, c32) ((a32) + ((b32) * (c32))) argument
498 #define silk_SMLABB_ovflw(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * (opus_int3… argument
508 static OPUS_INLINE opus_int32 silk_DIV32_(opus_int32 a32, opus_int32 b32, char *file, int line){ in silk_DIV32_() argument
511 fprintf (stderr, "silk_DIV32(%d, %d) in %s: line %d\n", a32, b32, file, line); in silk_DIV32_()
516 return a32 / b32; in silk_DIV32_()
521 static OPUS_INLINE opus_int32 silk_DIV32_16_(opus_int32 a32, opus_int32 b32, char *file, int line){ in silk_DIV32_16_() argument
528 fprintf (stderr, "silk_DIV32_16(%d, %d) in %s: line %d\n", a32, b32, file, line); in silk_DIV32_16_()
533 return a32 / b32; in silk_DIV32_16_()