Lines Matching refs:rdata
5901 mpd_uint_t *rdata = NULL;
5948 rdata = mpd_calloc(rsize, sizeof *rdata);
5949 if (rdata != NULL) {
5951 _mpd_shortmul(rdata, big->data, big->len, small->data[0]);
5954 _mpd_basemul(rdata, small->data, big->data, small->len, big->len);
5959 rdata = _mpd_kmul(big->data, small->data, big->len, small->len, &rsize);
5962 rdata = _mpd_fntmul(big->data, small->data, big->len, small->len, &rsize);
5965 rdata = _mpd_kmul_fnt(big->data, small->data, big->len, small->len, &rsize);
5968 if (rdata == NULL) {
5976 result->data = rdata;
8362 * The least significant word of the result is (*rdata)[0].
8364 * If rdata is NULL, space is allocated by the function and rlen is irrelevant.
8365 * In case of an error any allocated storage is freed and rdata is set back to
8368 * If rdata is non-NULL, it MUST be allocated by one of libmpdec's allocation
8370 * rdata. In case of an error the caller must free rdata.
8372 * Return value: In case of success, the exact length of rdata, SIZE_MAX
8376 mpd_qexport_u16(uint16_t **rdata, size_t rlen, uint32_t rbase,
8380 int alloc = 0; /* rdata == NULL */
8390 if (*rdata == NULL) {
8396 *rdata = mpd_alloc(rlen, sizeof **rdata);
8397 if (*rdata == NULL) {
8404 **rdata = 0;
8419 n = _baseconv_to_u16(rdata, rlen, rbase, tsrc.data, tsrc.len);
8431 mpd_free(*rdata);
8432 *rdata = NULL;
8441 * The least significant word of the result is (*rdata)[0].
8443 * If rdata is NULL, space is allocated by the function and rlen is irrelevant.
8444 * In case of an error any allocated storage is freed and rdata is set back to
8447 * If rdata is non-NULL, it MUST be allocated by one of libmpdec's allocation
8449 * rdata. In case of an error the caller must free rdata.
8451 * Return value: In case of success, the exact length of rdata, SIZE_MAX
8455 mpd_qexport_u32(uint32_t **rdata, size_t rlen, uint32_t rbase,
8459 int alloc = 0; /* rdata == NULL */
8467 if (*rdata == NULL) {
8473 *rdata = mpd_alloc(rlen, sizeof **rdata);
8474 if (*rdata == NULL) {
8481 **rdata = 0;
8497 n = _baseconv_to_smaller(rdata, rlen, rbase,
8501 n = _copy_equal_base(rdata, rlen, tsrc.data, tsrc.len);
8504 n = _baseconv_to_smaller(rdata, rlen, rbase,
8508 n = _baseconv_to_larger(rdata, rlen, rbase,
8524 mpd_free(*rdata);
8525 *rdata = NULL;