Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
typed-geometry
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Philip Trettner
typed-geometry
Commits
f7287eea
Commit
f7287eea
authored
Nov 23, 2020
by
Julius NehringWirxel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added identities.
parent
e77616eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
src/typed-geometry/functions/fixed_int/conversions.hh
src/typed-geometry/functions/fixed_int/conversions.hh
+20
-0
No files found.
src/typed-geometry/functions/fixed_int/conversions.hh
View file @
f7287eea
...
...
@@ -43,6 +43,16 @@ struct make_unsigned_t<fixed_int<w> const>
using
type
=
fixed_uint
<
w
>
const
;
};
template
<
int
w
>
struct
make_unsigned_t
<
fixed_uint
<
w
>>
{
using
type
=
fixed_uint
<
w
>
;
};
template
<
int
w
>
struct
make_unsigned_t
<
fixed_uint
<
w
>
const
>
{
using
type
=
fixed_uint
<
w
>
const
;
};
template
<
int
w
>
struct
make_signed_t
<
fixed_uint
<
w
>>
{
using
type
=
fixed_int
<
w
>
;
...
...
@@ -52,4 +62,14 @@ struct make_signed_t<fixed_uint<w> const>
{
using
type
=
fixed_int
<
w
>
const
;
};
template
<
int
w
>
struct
make_signed_t
<
fixed_int
<
w
>>
{
using
type
=
fixed_int
<
w
>
;
};
template
<
int
w
>
struct
make_signed_t
<
fixed_int
<
w
>
const
>
{
using
type
=
fixed_int
<
w
>
const
;
};
}
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