Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
52ca24bd
Commit
52ca24bd
authored
May 29, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/softfloat: Improve doxy for av_sub_sf() and av_sf2int()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
cbd19881
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
softfloat.h
libavutil/softfloat.h
+4
-0
No files found.
libavutil/softfloat.h
View file @
52ca24bd
...
@@ -160,6 +160,9 @@ static inline av_const SoftFloat av_add_sf(SoftFloat a, SoftFloat b){
...
@@ -160,6 +160,9 @@ static inline av_const SoftFloat av_add_sf(SoftFloat a, SoftFloat b){
else
return
a
;
else
return
a
;
}
}
/**
* @returns the difference of 2 SoftFloats.
*/
static
inline
av_const
SoftFloat
av_sub_sf
(
SoftFloat
a
,
SoftFloat
b
){
static
inline
av_const
SoftFloat
av_sub_sf
(
SoftFloat
a
,
SoftFloat
b
){
return
av_add_sf
(
a
,
(
SoftFloat
){
-
b
.
mant
,
b
.
exp
});
return
av_add_sf
(
a
,
(
SoftFloat
){
-
b
.
mant
,
b
.
exp
});
}
}
...
@@ -180,6 +183,7 @@ static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
...
@@ -180,6 +183,7 @@ static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
}
}
/**
/**
* Converts a SoftFloat to an integer.
* Rounding is to -inf.
* Rounding is to -inf.
*/
*/
static
inline
av_const
int
av_sf2int
(
SoftFloat
v
,
int
frac_bits
){
static
inline
av_const
int
av_sf2int
(
SoftFloat
v
,
int
frac_bits
){
...
...
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