Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
钟尚武
dlib
Commits
92692e10
Commit
92692e10
authored
Dec 25, 2017
by
Andriy Gerasika
Committed by
Davis E. King
Dec 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
>2x performance increase if DLIB_DO_NOT_USE_SIMD is defined (#1027)
parent
cf0b3b94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
simd8f.h
dlib/simd/simd8f.h
+4
-4
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