Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
ab61e67c
There was an error fetching the commit references. Please try again later.
Commit
ab61e67c
authored
9 years ago
by
Emmanuel Gil Peyrot
Browse files
Options
Downloads
Patches
Plain Diff
Common: Remove unused type unions breaking aliasing rules in horrible ways.
parent
6a0eea93
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/common_types.h
+0
-26
0 additions, 26 deletions
src/common/common_types.h
with
0 additions
and
26 deletions
src/common/common_types.h
+
0
−
26
View file @
ab61e67c
...
@@ -52,32 +52,6 @@ typedef double f64; ///< 64-bit floating point
...
@@ -52,32 +52,6 @@ typedef double f64; ///< 64-bit floating point
typedef
u32
VAddr
;
///< Represents a pointer in the userspace virtual address space.
typedef
u32
VAddr
;
///< Represents a pointer in the userspace virtual address space.
typedef
u32
PAddr
;
///< Represents a pointer in the ARM11 physical address space.
typedef
u32
PAddr
;
///< Represents a pointer in the ARM11 physical address space.
/// Union for fast 16-bit type casting
union
t16
{
u8
_u8
[
2
];
///< 8-bit unsigned char(s)
u16
_u16
;
///< 16-bit unsigned shorts(s)
};
/// Union for fast 32-bit type casting
union
t32
{
f32
_f32
;
///< 32-bit floating point(s)
u32
_u32
;
///< 32-bit unsigned int(s)
s32
_s32
;
///< 32-bit signed int(s)
u16
_u16
[
2
];
///< 16-bit unsigned shorts(s)
u8
_u8
[
4
];
///< 8-bit unsigned char(s)
};
/// Union for fast 64-bit type casting
union
t64
{
f64
_f64
;
///< 64-bit floating point
u64
_u64
;
///< 64-bit unsigned long
f32
_f32
[
2
];
///< 32-bit floating point(s)
u32
_u32
[
2
];
///< 32-bit unsigned int(s)
s32
_s32
[
2
];
///< 32-bit signed int(s)
u16
_u16
[
4
];
///< 16-bit unsigned shorts(s)
u8
_u8
[
8
];
///< 8-bit unsigned char(s)
};
// An inheritable class to disallow the copy constructor and operator= functions
// An inheritable class to disallow the copy constructor and operator= functions
class
NonCopyable
{
class
NonCopyable
{
protected:
protected:
...
...
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