Skip to content
GitLab
Explore
Sign in
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
f646d26c
Commit
f646d26c
authored
15 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1388:
Added casts to avoid warnings by gcc-4.3
parent
95975bc3
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
LCS/Common/include/Common/lofar_complex.h
+12
-12
12 additions, 12 deletions
LCS/Common/include/Common/lofar_complex.h
with
12 additions
and
12 deletions
LCS/Common/include/Common/lofar_complex.h
+
12
−
12
View file @
f646d26c
...
@@ -91,7 +91,7 @@ namespace LOFAR
...
@@ -91,7 +91,7 @@ namespace LOFAR
}
}
inline
static
i8complex
makei8complex
(
const
i4complex
&
z
)
{
inline
static
i8complex
makei8complex
(
const
i4complex
&
z
)
{
return
makei8complex
(
(
int
)
real
(
z
),
(
int
)
imag
(
z
));
return
makei8complex
(
TYPES
::
int
8
(
real
(
z
)
)
,
TYPES
::
int
8
(
imag
(
z
))
)
;
}
}
inline
static
i8complex
makei8complex
(
const
i8complex
&
z
)
{
inline
static
i8complex
makei8complex
(
const
i8complex
&
z
)
{
...
@@ -99,7 +99,7 @@ namespace LOFAR
...
@@ -99,7 +99,7 @@ namespace LOFAR
}
}
inline
static
i8complex
makei8complex
(
const
i16complex
&
z
)
{
inline
static
i8complex
makei8complex
(
const
i16complex
&
z
)
{
return
makei8complex
(
real
(
z
),
imag
(
z
));
return
makei8complex
(
TYPES
::
int8
(
real
(
z
)
)
,
TYPES
::
int8
(
imag
(
z
))
)
;
}
}
inline
static
i8complex
makei8complex
(
const
u16complex
&
z
)
{
inline
static
i8complex
makei8complex
(
const
u16complex
&
z
)
{
...
@@ -107,15 +107,15 @@ namespace LOFAR
...
@@ -107,15 +107,15 @@ namespace LOFAR
}
}
inline
static
i8complex
makei8complex
(
const
fcomplex
&
z
)
{
inline
static
i8complex
makei8complex
(
const
fcomplex
&
z
)
{
return
makei8complex
(
(
int
)
real
(
z
),
(
int
)
imag
(
z
));
return
makei8complex
(
TYPES
::
int
8
(
real
(
z
)
)
,
TYPES
::
int
8
(
imag
(
z
))
)
;
}
}
inline
static
i8complex
makei8complex
(
const
dcomplex
&
z
)
{
inline
static
i8complex
makei8complex
(
const
dcomplex
&
z
)
{
return
makei8complex
(
(
int
)
real
(
z
),
(
int
)
imag
(
z
));
return
makei8complex
(
TYPES
::
int
8
(
real
(
z
)
)
,
TYPES
::
int
8
(
imag
(
z
))
)
;
}
}
inline
static
i16complex
makei16complex
(
const
i4complex
&
z
)
{
inline
static
i16complex
makei16complex
(
const
i4complex
&
z
)
{
return
makei16complex
(
(
int
)
real
(
z
),
(
int
)
imag
(
z
));
return
makei16complex
(
TYPES
::
int16
(
real
(
z
)
)
,
TYPES
::
int16
(
imag
(
z
))
)
;
}
}
inline
static
i16complex
makei16complex
(
const
i8complex
&
z
)
{
inline
static
i16complex
makei16complex
(
const
i8complex
&
z
)
{
...
@@ -131,15 +131,15 @@ namespace LOFAR
...
@@ -131,15 +131,15 @@ namespace LOFAR
}
}
inline
static
i16complex
makei16complex
(
const
fcomplex
&
z
)
{
inline
static
i16complex
makei16complex
(
const
fcomplex
&
z
)
{
return
makei16complex
(
(
int
)
real
(
z
),
(
int
)
imag
(
z
));
return
makei16complex
(
TYPES
::
int16
(
real
(
z
)
)
,
TYPES
::
int16
(
imag
(
z
))
)
;
}
}
inline
static
i16complex
makei16complex
(
const
dcomplex
&
z
)
{
inline
static
i16complex
makei16complex
(
const
dcomplex
&
z
)
{
return
makei16complex
(
(
int
)
real
(
z
),
(
int
)
imag
(
z
));
return
makei16complex
(
TYPES
::
int16
(
real
(
z
)
)
,
TYPES
::
int16
(
imag
(
z
))
)
;
}
}
inline
static
u16complex
makeu16complex
(
const
i4complex
&
z
)
{
inline
static
u16complex
makeu16complex
(
const
i4complex
&
z
)
{
return
makeu16complex
(
(
int
)
real
(
z
),
(
int
)
imag
(
z
));
return
makeu16complex
(
TYPES
::
uint16
(
real
(
z
)
)
,
TYPES
::
uint16
(
imag
(
z
))
)
;
}
}
inline
static
u16complex
makeu16complex
(
const
i8complex
&
z
)
{
inline
static
u16complex
makeu16complex
(
const
i8complex
&
z
)
{
...
@@ -155,15 +155,15 @@ namespace LOFAR
...
@@ -155,15 +155,15 @@ namespace LOFAR
}
}
inline
static
u16complex
makeu16complex
(
const
fcomplex
&
z
)
{
inline
static
u16complex
makeu16complex
(
const
fcomplex
&
z
)
{
return
makeu16complex
(
(
unsigned
)
real
(
z
),
(
unsigned
)
imag
(
z
));
return
makeu16complex
(
TYPES
::
uint16
(
real
(
z
)
)
,
TYPES
::
uint16
(
imag
(
z
))
)
;
}
}
inline
static
u16complex
makeu16complex
(
const
dcomplex
&
z
)
{
inline
static
u16complex
makeu16complex
(
const
dcomplex
&
z
)
{
return
makeu16complex
(
(
unsigned
)
real
(
z
),
(
unsigned
)
imag
(
z
));
return
makeu16complex
(
TYPES
::
uint16
(
real
(
z
)
)
,
TYPES
::
uint16
(
imag
(
z
))
)
;
}
}
inline
static
fcomplex
makefcomplex
(
const
i4complex
&
z
)
{
inline
static
fcomplex
makefcomplex
(
const
i4complex
&
z
)
{
return
makefcomplex
(
real
(
z
),
imag
(
z
));
return
makefcomplex
(
float
(
real
(
z
)
)
,
float
(
imag
(
z
))
)
;
}
}
inline
static
fcomplex
makefcomplex
(
const
i8complex
&
z
)
{
inline
static
fcomplex
makefcomplex
(
const
i8complex
&
z
)
{
...
@@ -183,7 +183,7 @@ namespace LOFAR
...
@@ -183,7 +183,7 @@ namespace LOFAR
}
}
inline
static
fcomplex
makefcomplex
(
const
dcomplex
&
z
)
{
inline
static
fcomplex
makefcomplex
(
const
dcomplex
&
z
)
{
return
makefcomplex
(
(
float
)
real
(
z
),
(
float
)
imag
(
z
));
return
makefcomplex
(
float
(
real
(
z
)
)
,
float
(
imag
(
z
))
)
;
}
}
inline
static
dcomplex
makedcomplex
(
const
i4complex
&
z
)
{
inline
static
dcomplex
makedcomplex
(
const
i4complex
&
z
)
{
...
...
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