Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
Zipr Backend
Commits
218c8056
Commit
218c8056
authored
10 years ago
by
whh8b
Browse files
Options
Downloads
Patches
Plain Diff
Rename the Optimization enumeration to OptimizationName_t
parent
0ea06cb3
Branches
1-zipr-induces-dlopen-bug
Branches containing commit
Tags
CfarJuly2018Eval
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/zipr_optimizations.h
+1
-1
1 addition, 1 deletion
include/zipr_optimizations.h
include/zipr_options.h
+2
-2
2 additions, 2 deletions
include/zipr_options.h
include/zipr_stats.h
+2
-2
2 additions, 2 deletions
include/zipr_stats.h
with
5 additions
and
5 deletions
include/zipr_optimizations.h
+
1
−
1
View file @
218c8056
...
...
@@ -3,6 +3,6 @@
class
Optimizations_t
{
public:
enum
Optimization
{
OptimizationPlopNotJump
=
0
,
NumberOfOptimizations
};
enum
Optimization
Name_t
{
OptimizationPlopNotJump
=
0
,
NumberOfOptimizations
};
};
#endif
This diff is collapsed.
Click to expand it.
include/zipr_options.h
+
2
−
2
View file @
218c8056
...
...
@@ -47,12 +47,12 @@ class Options_t
std
::
string
GetOutputFileName
(
libIRDB
::
File_t
*
p_file
)
{
return
m_outname
;
}
int
GetVariantID
()
{
return
m_var_id
;
}
void
EnableOptimization
(
Optimizations_t
::
Optimization
opt
)
void
EnableOptimization
(
Optimizations_t
::
Optimization
Name_t
opt
)
{
EnabledOptimizations
[
opt
]
=
1
;
};
bool
IsEnabledOptimization
(
Optimizations_t
::
Optimization
opt
)
bool
IsEnabledOptimization
(
Optimizations_t
::
Optimization
Name_t
opt
)
{
return
EnabledOptimizations
[
opt
]
==
1
;
};
...
...
This diff is collapsed.
Click to expand it.
include/zipr_stats.h
+
2
−
2
View file @
218c8056
...
...
@@ -12,7 +12,7 @@ class Stats_t
};
int
Hits
[
Optimizations_t
::
NumberOfOptimizations
];
int
Misses
[
Optimizations_t
::
NumberOfOptimizations
];
void
Hit
(
Optimizations_t
::
Optimization
opt
)
{
Hits
[
opt
]
++
;
};
void
Missed
(
Optimizations_t
::
Optimization
opt
)
{
Misses
[
opt
]
++
;
};
void
Hit
(
Optimizations_t
::
Optimization
Name_t
opt
)
{
Hits
[
opt
]
++
;
};
void
Missed
(
Optimizations_t
::
Optimization
Name_t
opt
)
{
Misses
[
opt
]
++
;
};
};
#endif
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