Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f15f0048
Commit
f15f0048
authored
Jul 10, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fix
parent
6ec20524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/extras/libc.c
src/extras/libc.c
+5
-5
No files found.
src/extras/libc.c
View file @
f15f0048
...
@@ -467,7 +467,7 @@ vlc_bool_t vlc_reduce( unsigned *pi_dst_nom, unsigned *pi_dst_den,
...
@@ -467,7 +467,7 @@ vlc_bool_t vlc_reduce( unsigned *pi_dst_nom, unsigned *pi_dst_den,
uint64_t
i_nom
,
uint64_t
i_den
,
uint64_t
i_max
)
uint64_t
i_nom
,
uint64_t
i_den
,
uint64_t
i_max
)
{
{
vlc_bool_t
b_exact
=
1
;
vlc_bool_t
b_exact
=
1
;
int64_t
i_gcd
;
u
int64_t
i_gcd
;
if
(
i_den
==
0
)
if
(
i_den
==
0
)
{
{
...
@@ -484,14 +484,14 @@ vlc_bool_t vlc_reduce( unsigned *pi_dst_nom, unsigned *pi_dst_den,
...
@@ -484,14 +484,14 @@ vlc_bool_t vlc_reduce( unsigned *pi_dst_nom, unsigned *pi_dst_den,
if
(
i_nom
>
i_max
||
i_den
>
i_max
)
if
(
i_nom
>
i_max
||
i_den
>
i_max
)
{
{
int
i_a0_num
=
0
,
i_a0_den
=
1
,
i_a1_num
=
1
,
i_a1_den
=
0
;
u
int
i_a0_num
=
0
,
i_a0_den
=
1
,
i_a1_num
=
1
,
i_a1_den
=
0
;
b_exact
=
0
;
b_exact
=
0
;
for
(
;
;
)
for
(
;
;
)
{
{
int64_t
i_x
=
i_nom
/
i_den
;
u
int64_t
i_x
=
i_nom
/
i_den
;
int64_t
i_a2n
=
i_x
*
i_a1_num
+
i_a0_num
;
u
int64_t
i_a2n
=
i_x
*
i_a1_num
+
i_a0_num
;
int64_t
i_a2d
=
i_x
*
i_a1_den
+
i_a0_den
;
u
int64_t
i_a2d
=
i_x
*
i_a1_den
+
i_a0_den
;
if
(
i_a2n
>
i_max
||
i_a2d
>
i_max
)
break
;
if
(
i_a2n
>
i_max
||
i_a2d
>
i_max
)
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment