Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
639905f6
Commit
639905f6
authored
13 years ago
by
Andre Offringa
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1491: fixing issues with std::abs vs. abs macro defined in Fortran
parent
53794a2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/DP3/AOFlagger/include/AOFlagger/f2c.h
+9
-9
9 additions, 9 deletions
CEP/DP3/AOFlagger/include/AOFlagger/f2c.h
CEP/DP3/AOFlagger/include/AOFlagger/msio/antennainfo.h
+2
-2
2 additions, 2 deletions
CEP/DP3/AOFlagger/include/AOFlagger/msio/antennainfo.h
with
11 additions
and
11 deletions
CEP/DP3/AOFlagger/include/AOFlagger/f2c.h
+
9
−
9
View file @
639905f6
...
@@ -154,15 +154,15 @@ struct Namelist {
...
@@ -154,15 +154,15 @@ struct Namelist {
};
};
typedef
struct
Namelist
Namelist
;
typedef
struct
Namelist
Namelist
;
#define abs(x) ((x) >= 0 ? (x) : -(x))
//
#define abs(x) ((x) >= 0 ? (x) : -(x))
#define dabs(x) (doublereal)abs(x)
//
#define dabs(x) (doublereal)abs(x)
#define min(a,b) ((a) <= (b) ? (a) : (b))
//
#define min(a,b) ((a) <= (b) ? (a) : (b))
#define max(a,b) ((a) >= (b) ? (a) : (b))
//
#define max(a,b) ((a) >= (b) ? (a) : (b))
#define dmin(a,b) (doublereal)min(a,b)
//
#define dmin(a,b) (doublereal)min(a,b)
#define dmax(a,b) (doublereal)max(a,b)
//
#define dmax(a,b) (doublereal)max(a,b)
#define bit_test(a,b) ((a) >> (b) & 1)
//
#define bit_test(a,b) ((a) >> (b) & 1)
#define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
//
#define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
#define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
//
#define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
/* procedure parameter types for -A and -C++ */
/* procedure parameter types for -A and -C++ */
...
...
This diff is collapsed.
Click to expand it.
CEP/DP3/AOFlagger/include/AOFlagger/msio/antennainfo.h
+
2
−
2
View file @
639905f6
...
@@ -204,9 +204,9 @@ struct Angle {
...
@@ -204,9 +204,9 @@ struct Angle {
{
{
std
::
stringstream
s
;
std
::
stringstream
s
;
numl_t
deg
=
valueRad
*
180
.
0
/
M_PI
;
numl_t
deg
=
valueRad
*
180
.
0
/
M_PI
;
if
(
abs
(
deg
)
>
3
)
if
(
std
::
abs
(
deg
)
>
3
)
s
<<
deg
<<
" deg"
;
s
<<
deg
<<
" deg"
;
else
if
(
abs
(
deg
)
>
3
.
0
/
60
.
0
)
else
if
(
std
::
abs
(
deg
)
>
3
.
0
/
60
.
0
)
s
<<
(
deg
/
60
.
0
)
<<
" arcmin"
;
s
<<
(
deg
/
60
.
0
)
<<
" arcmin"
;
else
else
s
<<
(
deg
/
3600
.
0
)
<<
" arcsec"
;
s
<<
(
deg
/
3600
.
0
)
<<
" arcsec"
;
...
...
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