Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
cd86c067
Commit
cd86c067
authored
5 months ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Silent pedantic warning on the use of gcc specific binary representation
parent
e8e7e476
No related branches found
No related tags found
1 merge request
!492
Fix pedantic compilation warnings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/chameleon/constants.h
+13
-5
13 additions, 5 deletions
include/chameleon/constants.h
with
13 additions
and
5 deletions
include/chameleon/constants.h
+
13
−
5
View file @
cd86c067
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
* @author Alycia Lisito
* @author Alycia Lisito
* @author Terry Cojean
* @author Terry Cojean
* @author Matthieu Kuhn
* @author Matthieu Kuhn
* @date 202
3-08-22
* @date 202
4-10-18
*
*
*/
*/
#ifndef _chameleon_constants_h_
#ifndef _chameleon_constants_h_
...
@@ -44,16 +44,24 @@ typedef enum chameleon_arithmetic_e {
...
@@ -44,16 +44,24 @@ typedef enum chameleon_arithmetic_e {
ChamDouble
=
3
,
ChamDouble
=
3
,
}
cham_arithmetic_t
;
}
cham_arithmetic_t
;
#define CHAM_ARITHMETIC_MASK 0b11
typedef
enum
chameleon_ftype_e
{
typedef
enum
chameleon_ftype_e
{
ChamInt
=
0
,
ChamInt
=
0
,
ChamReal
=
1
,
ChamReal
=
1
,
ChamComplex
=
2
,
ChamComplex
=
2
,
}
cham_ftype_t
;
}
cham_ftype_t
;
#define CHAM_FTYPE_MASK 0b1100
/**
#define CHAM_MIXED_MASK 0b10000
* Defines the arithmetic type mask using the 1st and 2nd bits
*/
#define CHAM_ARITHMETIC_MASK ( 0x3 )
/**
* Defines the floating type mask using the 3rd and 4th bits
*/
#define CHAM_FTYPE_MASK ( 0x3 << 2 )
/**
* Defines the mixed precision flag mask on the 5th bit
*/
#define CHAM_MIXED_MASK ( 0x1 << 4 )
#define cham_get_arith( _ftype_ ) ( (_ftype_) & CHAM_ARITHMETIC_MASK )
#define cham_get_arith( _ftype_ ) ( (_ftype_) & CHAM_ARITHMETIC_MASK )
#define cham_get_ftype( _ftype_ ) (( (_ftype_) & CHAM_FTYPE_MASK ) >> 2 )
#define cham_get_ftype( _ftype_ ) (( (_ftype_) & CHAM_FTYPE_MASK ) >> 2 )
...
...
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