This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_poly_divide

Function Documentation

int rc_poly_divide(rc_vector_t n, rc_vector_t d, rc_vector_t *div, rc_vector_t *rem)

Divides denominator d into numerator n. The remainder is placed into vector rem and the divisor is placed into vector div.

Parameters
  • n[in] numerator

  • d[in] denominator

  • div – The resulting divisor

  • rem – The resulting remainder

Returns

Returns 0 on success and -1 on failure.