Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs-feliks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feliks Kiszkurno
ogs-feliks
Commits
7b07d9ee
Commit
7b07d9ee
authored
12 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Windows warning signed/unsigned comparison.
Fixed Windows warning signed/unsigned comparison for OpenMP loop type.
parent
8a67b4e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MathLib/MathTools.h
+7
-0
7 additions, 0 deletions
MathLib/MathTools.h
with
7 additions
and
0 deletions
MathLib/MathTools.h
+
7
−
0
View file @
7b07d9ee
...
...
@@ -67,9 +67,16 @@ T scpr(T const * const v0, T const * const v1, unsigned n)
OPENMP_LOOP_TYPE
k
;
#pragma omp parallel for reduction (+:res)
#ifdef WIN32
#pragma warning ( push )
#pragma warning ( disable: 4018 )
#endif
for
(
k
=
1
;
k
<
n
;
k
++
)
{
res
+=
v0
[
k
]
*
v1
[
k
];
}
#ifdef WIN32
#pragma warning ( pop )
#endif
#else
for
(
std
::
size_t
k
(
1
);
k
<
n
;
k
++
)
res
+=
v0
[
k
]
*
v1
[
k
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment