1
/**************************************************************************/
3
/* This file is part of Frama-C. */
5
/* Copyright (C) 2007-2008 */
6
/* CEA (Commissariat � l'�nergie Atomique) */
8
/* you can redistribute it and/or modify it under the terms of the GNU */
9
/* Lesser General Public License as published by the Free Software */
10
/* Foundation, version 2.1. */
12
/* It is distributed in the hope that it will be useful, */
13
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
14
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
15
/* GNU Lesser General Public License for more details. */
17
/* See the GNU Lesser General Public License version 2.1 */
18
/* for more details (enclosed in the file licenses/LGPLv2.1). */
20
/**************************************************************************/
22
/* $Id: mybigarray.c,v 1.2 2008/11/04 10:05:05 uid568 Exp $ */
24
#include "caml/bigarray.h"
25
#include "caml/mlvalues.h"
28
value mybigarray_alignment (value ba)
31
#ifndef Caml_ba_data_val
32
data = (long)Data_bigarray_val(ba);
34
data = (long)Caml_ba_data_val(ba);
36
return Val_long(data);