6 /* Copyright (C) 1995,1996,1997,1999,2000,2001, 2004, 2006, 2008, 2009,
7 * 2013, 2014 Free Software Foundation, Inc.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 3 of
12 * the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27 #include "libguile/__scm.h"
32 * Uniform vectors contain unboxed values. They are not necessarily contiguous.
35 SCM_INTERNAL
const size_t scm_i_array_element_type_sizes
[];
36 #define SCM_ARRAY_ELEMENT_TYPE_IS_UNBOXED(t) \
37 (scm_i_array_element_type_sizes[(t)] != 0)
39 /* type size in bytes */
40 SCM_API
size_t scm_array_handle_uniform_element_size (scm_t_array_handle
*h
);
41 /* type size in bits */
42 SCM_API
size_t scm_array_handle_uniform_element_bit_size (scm_t_array_handle
*h
);
44 SCM_API
const void *scm_array_handle_uniform_elements (scm_t_array_handle
*h
);
45 SCM_API
void *scm_array_handle_uniform_writable_elements (scm_t_array_handle
*h
);
47 SCM_INTERNAL
void scm_init_uniform (void);
50 #endif /* SCM_UNIFORM_H */