|
From: <sv...@va...> - 2007-01-16 22:04:08
|
Author: sewardj
Date: 2007-01-16 22:03:54 +0000 (Tue, 16 Jan 2007)
New Revision: 6527
Log:
Merge r6523 (Inline a bunch of helper functions)
Modified:
branches/VALGRIND_3_2_BRANCH/auxprogs/libmpiwrap.c
Modified: branches/VALGRIND_3_2_BRANCH/auxprogs/libmpiwrap.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/VALGRIND_3_2_BRANCH/auxprogs/libmpiwrap.c 2007-01-16 21:42:2=
8 UTC (rev 6526)
+++ branches/VALGRIND_3_2_BRANCH/auxprogs/libmpiwrap.c 2007-01-16 22:03:5=
4 UTC (rev 6527)
@@ -492,7 +492,7 @@
/*--- Unpicking datatypes ---*/
/*------------------------------------------------------------*/
=20
-static=20
+static __inline__
void walk_type_array ( void(*f)(void*,long), char* base,=20
MPI_Datatype ty, long count );
=20
@@ -693,7 +693,7 @@
into a different routine is so it can attempt to optimise the case
where the array elements are contiguous and packed together without
holes. */
-static=20
+static __inline__
void walk_type_array ( void(*f)(void*,long), char* base,=20
MPI_Datatype elemTy, long count )
{
@@ -748,12 +748,11 @@
=20
/* ----------------
Do corresponding checks on memory areas defined using a=20
- straightforward (start, length) description. Not inlined
- so as to make any resulting error tracebacks easier to read.
+ straightforward (start, length) description.
----------------
*/
=20
-static
+static __inline__
void check_mem_is_defined_untyped ( void* buffer, long nbytes )
{
if (nbytes > 0) {
@@ -761,7 +760,7 @@
}
}
=20
-static
+static __inline__
void check_mem_is_addressable_untyped ( void* buffer, long nbytes )
{
if (nbytes > 0) {
@@ -769,7 +768,7 @@
}
}
=20
-static
+static __inline__
void make_mem_defined_if_addressable_untyped ( void* buffer, long nbytes=
)
{
if (nbytes > 0) {
@@ -777,7 +776,7 @@
}
}
=20
-static
+static __inline__
void make_mem_defined_if_addressable_if_success_untyped ( int err,=20
void* buffer, long nbytes )
{
@@ -796,7 +795,7 @@
/* Check that the specified area is both addressible and contains
initialised data, and cause V to complain if not. */
=20
-static
+static __inline__
void check_mem_is_defined ( char* buffer, long count, MPI_Datatype datat=
ype )
{
walk_type_array( check_mem_is_defined_untyped, buffer, datatype, coun=
t );
@@ -807,7 +806,7 @@
complain if not. Doesn't matter whether the data there is
initialised or not. */
=20
-static
+static __inline__
void check_mem_is_addressable ( void *buffer, long count, MPI_Datatype d=
atatype )
{
walk_type_array( check_mem_is_addressable_untyped, buffer, datatype, =
count );
@@ -817,14 +816,14 @@
/* Set the specified area to 'defined for each byte which is
addressible' state. */
=20
-static
+static __inline__
void make_mem_defined_if_addressable ( void *buffer, int count, MPI_Data=
type datatype )
{
walk_type_array( make_mem_defined_if_addressable_untyped,
buffer, datatype, count );
}
=20
-static
+static __inline__
void=20
make_mem_defined_if_addressable_if_success ( int err, void *buffer, int =
count,=20
MPI_Datatype datatype )
@@ -1167,7 +1166,7 @@
/* --- Isend --- */
/* rd: (buf,count,datatype) */
/* wr: *request */
-static
+static __inline__
int generic_Isend(void *buf, int count, MPI_Datatype datatype,=20
int dest, int tag, MPI_Comm comm,=20
MPI_Request* request)
|