Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
bbfec3b2
Commit
bbfec3b2
authored
Apr 06, 2013
by
Davis King
Browse files
refined a little
parent
6af02c88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
dlib/float_details.h
dlib/float_details.h
+8
-2
No files found.
dlib/float_details.h
View file @
bbfec3b2
...
@@ -15,8 +15,14 @@ namespace dlib
...
@@ -15,8 +15,14 @@ namespace dlib
WHAT THIS OBJECT REPRESENTS
WHAT THIS OBJECT REPRESENTS
!*/
!*/
float_details
(
int64
man
,
int16
exp
)
:
mantissa
(
man
),
exponent
(
exp
)
{}
float_details
()
:
float_details
()
:
exponent
(
0
),
mantissa
(
0
)
mantissa
(
0
),
exponent
(
0
)
{}
{}
const
static
int16
is_inf
=
32000
;
const
static
int16
is_inf
=
32000
;
...
@@ -35,8 +41,8 @@ namespace dlib
...
@@ -35,8 +41,8 @@ namespace dlib
operator
float
()
const
{
return
convert_to_T
<
float
>
();
}
operator
float
()
const
{
return
convert_to_T
<
float
>
();
}
operator
long
double
()
const
{
return
convert_to_T
<
long
double
>
();
}
operator
long
double
()
const
{
return
convert_to_T
<
long
double
>
();
}
int16
exponent
;
int64
mantissa
;
int64
mantissa
;
int16
exponent
;
private:
private:
...
...
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