Lines Matching defs:ptr

51 static	sf_count_t	g72x_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
52 static sf_count_t g72x_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len) ;
53 static sf_count_t g72x_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len) ;
54 static sf_count_t g72x_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len) ;
56 static sf_count_t g72x_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len) ;
57 static sf_count_t g72x_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len) ;
58 static sf_count_t g72x_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len) ;
59 static sf_count_t g72x_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len) ;
203 g72x_read_block (SF_PRIVATE *psf, G72x_PRIVATE *pg72x, short *ptr, int len)
208 { memset (&(ptr [indx]), 0, (len - indx) * sizeof (short)) ;
218 memcpy (&(ptr [indx]), &(pg72x->samples [pg72x->sample_curr]), count * sizeof (short)) ;
228 g72x_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len)
240 count = g72x_read_block (psf, pg72x, ptr, readcount) ;
253 g72x_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len)
271 ptr [total + k] = arith_shift_left (sptr [k], 16) ;
283 g72x_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len)
303 ptr [total + k] = normfact * sptr [k] ;
315 g72x_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len)
335 ptr [total + k] = normfact * (double) (sptr [k]) ;
448 g72x_write_block (SF_PRIVATE *psf, G72x_PRIVATE *pg72x, const short *ptr, int len)
457 memcpy (&(pg72x->samples [pg72x->sample_curr]), &(ptr [indx]), count * sizeof (short)) ;
470 g72x_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len)
482 count = g72x_write_block (psf, pg72x, ptr, writecount) ;
494 g72x_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len)
510 sptr [k] = ptr [total + k] >> 16 ;
522 g72x_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len)
541 sptr [k] = psf_lrintf (normfact * ptr [total + k]) ;
554 g72x_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
573 sptr [k] = psf_lrint (normfact * ptr [total + k]) ;