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
92692e10
Commit
92692e10
authored
Dec 25, 2017
by
Andriy Gerasika
Committed by
Davis E. King
Dec 24, 2017
Browse files
>2x performance increase if DLIB_DO_NOT_USE_SIMD is defined (#1027)
parent
cf0b3b94
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
dlib/simd/simd8f.h
dlib/simd/simd8f.h
+4
-4
dlib/simd/simd8i.h
dlib/simd/simd8i.h
+2
-2
No files found.
dlib/simd/simd8f.h
View file @
92692e10
...
@@ -125,8 +125,8 @@ namespace dlib
...
@@ -125,8 +125,8 @@ namespace dlib
return
_high
[
idx
-
4
];
return
_high
[
idx
-
4
];
}
}
inline
simd4f
low
()
const
{
return
_low
;
}
inline
const
simd4f
&
low
()
const
{
return
_low
;
}
inline
simd4f
high
()
const
{
return
_high
;
}
inline
const
simd4f
&
high
()
const
{
return
_high
;
}
private:
private:
simd4f
_low
,
_high
;
simd4f
_low
,
_high
;
...
@@ -141,8 +141,8 @@ namespace dlib
...
@@ -141,8 +141,8 @@ namespace dlib
inline
simd8f_bool
(
const
simd4f_bool
&
low_
,
const
simd4f_bool
&
high_
)
:
_low
(
low_
),
_high
(
high_
){}
inline
simd8f_bool
(
const
simd4f_bool
&
low_
,
const
simd4f_bool
&
high_
)
:
_low
(
low_
),
_high
(
high_
){}
inline
simd4f_bool
low
()
const
{
return
_low
;
}
inline
const
simd4f_bool
&
low
()
const
{
return
_low
;
}
inline
simd4f_bool
high
()
const
{
return
_high
;
}
inline
const
simd4f_bool
&
high
()
const
{
return
_high
;
}
private:
private:
simd4f_bool
_low
,
_high
;
simd4f_bool
_low
,
_high
;
};
};
...
...
dlib/simd/simd8i.h
View file @
92692e10
...
@@ -91,8 +91,8 @@ namespace dlib
...
@@ -91,8 +91,8 @@ namespace dlib
return
_high
[
idx
-
4
];
return
_high
[
idx
-
4
];
}
}
inline
simd4i
low
()
const
{
return
_low
;
}
inline
const
simd4i
&
low
()
const
{
return
_low
;
}
inline
simd4i
high
()
const
{
return
_high
;
}
inline
const
simd4i
&
high
()
const
{
return
_high
;
}
private:
private:
simd4i
_low
,
_high
;
simd4i
_low
,
_high
;
...
...
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