• Home
  • Raw
  • Download

Lines Matching refs:ncp

782     signed char *cp, *ncp;  in audioop_mul()  local
799 ncp = (signed char *)PyString_AsString(rv); in audioop_mul()
808 if ( size == 1 ) *CHARP(ncp, i) = (signed char)val; in audioop_mul()
809 else if ( size == 2 ) *SHORTP(ncp, i) = (short)val; in audioop_mul()
810 else if ( size == 4 ) *LONGP(ncp, i) = (Py_Int32)val; in audioop_mul()
818 signed char *cp, *ncp; in audioop_tomono() local
840 ncp = (signed char *)PyString_AsString(rv); in audioop_tomono()
852 if ( size == 1 ) *CHARP(ncp, i/2) = (signed char)val1; in audioop_tomono()
853 else if ( size == 2 ) *SHORTP(ncp, i/2) = (short)val1; in audioop_tomono()
854 else if ( size == 4 ) *LONGP(ncp, i/2)= (Py_Int32)val1; in audioop_tomono()
862 signed char *cp, *ncp; in audioop_tostereo() local
886 ncp = (signed char *)PyString_AsString(rv); in audioop_tostereo()
900 if ( size == 1 ) *CHARP(ncp, i*2) = (signed char)val1; in audioop_tostereo()
901 else if ( size == 2 ) *SHORTP(ncp, i*2) = (short)val1; in audioop_tostereo()
902 else if ( size == 4 ) *LONGP(ncp, i*2) = (Py_Int32)val1; in audioop_tostereo()
904 if ( size == 1 ) *CHARP(ncp, i*2+1) = (signed char)val2; in audioop_tostereo()
905 else if ( size == 2 ) *SHORTP(ncp, i*2+2) = (short)val2; in audioop_tostereo()
906 else if ( size == 4 ) *LONGP(ncp, i*2+4) = (Py_Int32)val2; in audioop_tostereo()
914 signed char *cp1, *cp2, *ncp; in audioop_add() local
935 ncp = (signed char *)PyString_AsString(rv); in audioop_add()
960 if ( size == 1 ) *CHARP(ncp, i) = (signed char)newval; in audioop_add()
961 else if ( size == 2 ) *SHORTP(ncp, i) = (short)newval; in audioop_add()
962 else if ( size == 4 ) *LONGP(ncp, i) = (Py_Int32)newval; in audioop_add()
970 signed char *cp, *ncp; in audioop_bias() local
987 ncp = (signed char *)PyString_AsString(rv); in audioop_bias()
1000 if ( size == 1 ) *CHARP(ncp, i) = (signed char)(unsigned char)val; in audioop_bias()
1001 else if ( size == 2 ) *SHORTP(ncp, i) = (short)(unsigned short)val; in audioop_bias()
1002 else if ( size == 4 ) *LONGP(ncp, i) = (Py_Int32)(Py_UInt32)val; in audioop_bias()
1011 unsigned char *ncp; in audioop_reverse() local
1026 ncp = (unsigned char *)PyString_AsString(rv); in audioop_reverse()
1035 if ( size == 1 ) *CHARP(ncp, j) = (signed char)(val >> 24); in audioop_reverse()
1036 else if ( size == 2 ) *SHORTP(ncp, j) = (short)(val >> 16); in audioop_reverse()
1037 else if ( size == 4 ) *LONGP(ncp, j) = (Py_Int32)val; in audioop_reverse()
1046 unsigned char *ncp; in audioop_lin2lin() local
1068 ncp = (unsigned char *)PyString_AsString(rv); in audioop_lin2lin()
1075 if ( size2 == 1 ) *CHARP(ncp, j) = (signed char)(val >> 24); in audioop_lin2lin()
1076 else if ( size2 == 2 ) *SHORTP(ncp, j) = (short)(val >> 16); in audioop_lin2lin()
1077 else if ( size2 == 4 ) *LONGP(ncp, j) = (Py_Int32)val; in audioop_lin2lin()
1096 char *cp, *ncp; in audioop_ratecv() local
1216 ncp = PyString_AsString(str); in audioop_ratecv()
1233 len = (int)(ncp - PyString_AsString(str)); in audioop_ratecv()
1270 *CHARP(ncp, 0) = (signed char)(cur_o >> 24); in audioop_ratecv()
1272 *SHORTP(ncp, 0) = (short)(cur_o >> 16); in audioop_ratecv()
1274 *LONGP(ncp, 0) = (Py_Int32)(cur_o); in audioop_ratecv()
1275 ncp += size; in audioop_ratecv()
1292 unsigned char *ncp; in audioop_lin2ulaw() local
1307 ncp = (unsigned char *)PyString_AsString(rv); in audioop_lin2ulaw()
1314 *ncp++ = st_14linear2ulaw(val); in audioop_lin2ulaw()
1324 signed char *ncp; in audioop_ulaw2lin() local
1344 ncp = (signed char *)PyString_AsString(rv); in audioop_ulaw2lin()
1350 if ( size == 1 ) *CHARP(ncp, i) = (signed char)(val >> 8); in audioop_ulaw2lin()
1351 else if ( size == 2 ) *SHORTP(ncp, i) = (short)(val); in audioop_ulaw2lin()
1352 else if ( size == 4 ) *LONGP(ncp, i) = (Py_Int32)(val<<16); in audioop_ulaw2lin()
1361 unsigned char *ncp; in audioop_lin2alaw() local
1376 ncp = (unsigned char *)PyString_AsString(rv); in audioop_lin2alaw()
1383 *ncp++ = st_linear2alaw(val); in audioop_lin2alaw()
1393 signed char *ncp; in audioop_alaw2lin() local
1413 ncp = (signed char *)PyString_AsString(rv); in audioop_alaw2lin()
1419 if ( size == 1 ) *CHARP(ncp, i) = (signed char)(val >> 8); in audioop_alaw2lin()
1420 else if ( size == 2 ) *SHORTP(ncp, i) = (short)(val); in audioop_alaw2lin()
1421 else if ( size == 4 ) *LONGP(ncp, i) = (Py_Int32)(val<<16); in audioop_alaw2lin()
1430 signed char *ncp; in audioop_lin2adpcm() local
1465 ncp = (signed char *)PyString_AsString(str); in audioop_lin2adpcm()
1533 *ncp++ = (delta & 0x0f) | outputbuffer; in audioop_lin2adpcm()
1546 signed char *ncp; in audioop_adpcm2lin() local
1585 ncp = (signed char *)PyString_AsString(str); in audioop_adpcm2lin()
1635 if ( size == 1 ) *CHARP(ncp, i) = (signed char)(valpred >> 8); in audioop_adpcm2lin()
1636 else if ( size == 2 ) *SHORTP(ncp, i) = (short)(valpred); in audioop_adpcm2lin()
1637 else if ( size == 4 ) *LONGP(ncp, i) = (Py_Int32)(valpred<<16); in audioop_adpcm2lin()