Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
1a701c17
Commit
1a701c17
authored
Nov 19, 2013
by
Thomas Jahns
🤸
Browse files
Get rid of marginally useful functions.
parent
92875656
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/pio_util.c
View file @
1a701c17
...
...
@@ -194,24 +194,6 @@ void pcdiDebugMsg2 ( const char *filename, const char *functionname, int line,
/****************************************************/
int
xmaxInt
(
int
a
,
int
b
)
{
return
a
>=
b
?
a
:
b
;
}
/****************************************************/
int
xminInt
(
int
a
,
int
b
)
{
return
a
<=
b
?
a
:
b
;
}
/****************************************************/
int
xsum
(
int
n
,
int
*
argarray
)
{
int
i
,
sum
=
0
;
...
...
src/pio_util.h
View file @
1a701c17
...
...
@@ -140,8 +140,6 @@ void pcdiDebugMsg2 ( const char *filename, const char *functionname, int line, \
#define xdebugMsg2(tag,source,text) \
if ( ddebug ) pcdiDebugMsg ( __FILE__, __func__, __LINE__, tag, source, text )
int
xmaxInt
(
int
,
int
);
int
xminInt
(
int
,
int
);
int
xsum
(
int
,
int
*
);
double
xchecksum
(
int
,
int
,
void
*
);
...
...
src/resource_handle.c
View file @
1a701c17
...
...
@@ -598,8 +598,8 @@ int reshListCompare ( int nsp0, int nsp1 )
LIST_INIT
();
LIST_LOCK
();
xassert
(
resHListSize
>
xmaxInt
(
nsp0
,
nsp1
)
&&
xminInt
(
nsp0
,
nsp1
)
>=
0
);
xassert
(
resHListSize
>
nsp0
&&
resHListSize
>
nsp1
&&
nsp0
>=
0
&&
nsp1
>=
0
);
for
(
i
=
0
;
i
<
resHList
[
nsp0
].
size
;
i
++
)
{
...
...
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