Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libmtime
Commits
242d61f2
Commit
242d61f2
authored
4 years ago
by
Florian Prill
Browse files
Options
Downloads
Patches
Plain Diff
[event_generic_review] more appropriate naming.
parent
5734203d
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
WIP: Event generic
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/int_div.h
+1
-1
1 addition, 1 deletion
include/int_div.h
src/int_div.c
+2
-2
2 additions, 2 deletions
src/int_div.c
with
3 additions
and
3 deletions
include/int_div.h
+
1
−
1
View file @
242d61f2
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/int_div.c
+
2
−
2
View file @
242d61f2
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Florian Prill
@m300196
mentioned in merge request
!3 (closed)
·
4 years ago
mentioned in merge request
!3 (closed)
mentioned in merge request !3
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment