idx = H5VM_chunk_index(ndims, swizzled_coords, idx_info->layout->u.earray.swizzled_dim, idx_info->layout->u.earray.swizzled_down_chunks);
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
 * access to either file, you may request a copy from help@hdfgroup.org.     *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Programmer:  Quincey Koziol <koziol@hdfgroup.org>
 *          Tuesday, January 27, 2009
 *
 * Purpose: Extensible array indexed (chunked) I/O functions.  The chunks
 *              are given a single-dimensional index which is used as the
 *              offset in an extensible array that maps a chunk coordinate to
 *              a disk address.
 *
 */
/****************/
/* Module Setup */
/****************/
#include "H5Dmodule.h"          /* This source code file is part of the H5D module */
/***********/
/* Headers */
/***********/
#include "H5private.h"      /* Generic Functions            */
#include "H5Dpkg.h"     /* Datasets             */
#include "H5Eprivate.h"     /* Error handling           */
#include "H5EAprivate.h"    /* Extensible arrays            */
#include "H5FLprivate.h"    /* Free Lists                           */
#include "H5MFprivate.h"    /* File space management        */
#include "H5VMprivate.h"        /* Vector functions         */
/****************/
/* Local Macros */
/****************/
/* Value to fill unset array elements with */
#define H5D_EARRAY_FILL         HADDR_UNDEF
#define H5D_EARRAY_FILT_FILL    {HADDR_UNDEF, 0, 0}