~ubuntu-branches/ubuntu/vivid/mpich/vivid-proposed

« back to all changes in this revision

Viewing changes to src/mpid/common/datatype/dataloop/dataloop_create_contig.c

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-04-01 20:24:20 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140401202420-t5ey1ia2klt5dkq3
Tags: 3.1-4
* [c3e3398] Disable test_primitives, which is unreliable on some platforms.
            (Closes: #743047)
* [265a699] Add minimal autotest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
.N Errors
23
23
.N Returns 0 on success, -1 on failure.
24
24
@*/
25
 
int PREPEND_PREFIX(Dataloop_create_contiguous)(int icount,
 
25
int PREPEND_PREFIX(Dataloop_create_contiguous)(DLOOP_Count icount,
26
26
                                               DLOOP_Type oldtype,
27
27
                                               DLOOP_Dataloop **dlp_p,
28
 
                                               int *dlsz_p,
 
28
                                               DLOOP_Size *dlsz_p,
29
29
                                               int *dldepth_p,
30
30
                                               int flag)
31
31
{
32
32
    DLOOP_Count count;
33
33
    int is_builtin, apply_contig_coalescing = 0;
34
 
    int new_loop_sz, new_loop_depth;
 
34
    int new_loop_depth;
 
35
    DLOOP_Size new_loop_sz;
35
36
 
36
37
    DLOOP_Dataloop *new_dlp;
37
38
 
38
 
    count = (DLOOP_Count) icount; /* avoid subsequent casting */
 
39
    count = icount;
39
40
 
40
41
    is_builtin = (DLOOP_Handle_hasloop_macro(oldtype)) ? 0 : 1;
41
42
 
103
104
    {
104
105
        /* user-defined base type (oldtype) */
105
106
        DLOOP_Dataloop *old_loop_ptr;
106
 
        int old_loop_sz = 0;
 
107
        MPI_Aint old_loop_sz = 0;
107
108
 
108
109
        DLOOP_Handle_get_loopptr_macro(oldtype, old_loop_ptr, flag);
109
110
        DLOOP_Handle_get_loopsize_macro(oldtype, old_loop_sz, flag);