Skip to content
Snippets Groups Projects
Commit 242d61f2 authored by Florian Prill's avatar Florian Prill
Browse files

[event_generic_review] more appropriate naming.

parent 5734203d
No related branches found
No related tags found
1 merge request!3WIP: Event generic
......@@ -32,7 +32,7 @@ void product(t_number *x, const t_number y, const t_int k, const t_int b
void quotient(t_number *x, const t_number y, t_int k, const t_int b);
void iremainder(t_number *x, const t_number y, t_int k, const t_int b);
t_int trial(const t_number r, const t_number d, const int k, const int m, const t_int b, int* ret);
int smaller(const t_number r, const t_number dq, const int k, const int m);
int prefix_less_than(const t_number r, const t_number dq, const int k, const int m);
void difference(t_number *r, const t_number dq, const int k, const int m, const t_int b, int *ret);
int division(const t_number x, const t_number y, t_number *q, t_number *r, const t_int b);
......
......@@ -96,7 +96,7 @@ t_int trial(const t_number r, const t_number d,
/* prefix arithmetic: prefix comparison r{m+1} < dq, return <0 if error. */
int smaller(const t_number r, const t_number dq, const int k, const int m) {
int prefix_less_than(const t_number r, const t_number dq, const int k, const int m) {
int i=m;
#if DEBUG
......@@ -156,7 +156,7 @@ int division(const t_number x, const t_number y,
qt = trial(rm, d, k, m, b, &ret);
product(&dq,d,qt,b, &ret);
if ((ret == 0) && (smaller(rm,dq,k,m)))
if ((ret == 0) && (prefix_less_than(rm,dq,k,m)))
product(&dq,d,--qt,b, &ret);
(*q)[k] = qt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment