• Main Page
  • Classes
  • Files
  • File List
  • File Members

vector.h

Go to the documentation of this file.
00001 
00002    /*+------- <| --------------------------------------------------------**
00003     **         A                  Clan/Scop                              **
00004     **---     /.\   -----------------------------------------------------**
00005     **   <|  [""M#                 vector.h                              **
00006     **-   A   | #   -----------------------------------------------------**
00007     **   /.\ [""M#         First version: 01/05/2008                     **
00008     **- [""M# | #  U"U#U  -----------------------------------------------**
00009          | #  | #  \ .:/
00010          | #  | #___| #
00011  ******  | "--'     .-"  ******************************************************
00012  *     |"-"-"-"-"-#-#-##   Clan : the Chunky Loop Analyzer (experimental)     *
00013  ****  |     # ## ######  *****************************************************
00014  *      \       .::::'/                                                       *
00015  *       \      ::::'/     Copyright (C) 2008 Cedric Bastoul                  *
00016  *     :8a|    # # ##                                                         *
00017  *     ::88a      ###      This is free software; you can redistribute it     *
00018  *    ::::888a  8a ##::.   and/or modify it under the terms of the GNU Lesser *
00019  *  ::::::::888a88a[]:::   General Public License as published by the Free    *
00020  *::8:::::::::SUNDOGa8a::. Software Foundation, either version 2.1 of the     *
00021  *::::::::8::::888:Y8888:: License, or (at your option) any later version.    *
00022  *::::':::88::::888::Y88a::::::::::::...                                      *
00023  *::'::..    .   .....   ..   ...  .                                          *
00024  * This software is distributed in the hope that it will be useful, but       *
00025  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
00026  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   *
00027  * for more details.                                                          *
00028  *                                                                            *
00029  * You should have received a copy of the GNU Lesser General Public License   *
00030  * along with software; if not, write to the Free Software Foundation, Inc.,  *
00031  * 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA                     *
00032  *                                                                            *
00033  * Clan, the Chunky Loop Analyzer                                             *
00034  * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr                         *
00035  *                                                                            *
00036  ******************************************************************************/
00037 
00038 
00039 #ifndef SCOPLIB_VECTOR_H
00040 # define SCOPLIB_VECTOR_H
00041 
00042 # include <stdio.h>
00043 # include <scoplib/macros.h>
00044 
00045 
00046 # if defined(__cplusplus)
00047 extern "C"
00048   {
00049 # endif
00050 
00051 
00059 struct scoplib_vector
00060 {
00061   unsigned Size;  
00062   scoplib_int_t * p; 
00063 };
00064 typedef struct scoplib_vector   scoplib_vector_t;
00065 typedef struct scoplib_vector * scoplib_vector_p;
00066 
00067 
00068 /*+****************************************************************************
00069  *                          Structure display function                        *
00070  ******************************************************************************/
00071 void          scoplib_vector_print_structure(FILE *, scoplib_vector_p, int);
00072 void          scoplib_vector_print(FILE *, scoplib_vector_p);
00073 
00074 
00075 /*+****************************************************************************
00076  *                    Memory allocation/deallocation function                 *
00077  ******************************************************************************/
00078 scoplib_vector_p scoplib_vector_malloc(unsigned);
00079 void             scoplib_vector_free(scoplib_vector_p);
00080 
00081 
00082 /*+****************************************************************************
00083  *                            Processing functions                            *
00084  ******************************************************************************/
00085 scoplib_vector_p scoplib_vector_add_scalar(scoplib_vector_p, int);
00086 scoplib_vector_p scoplib_vector_add(scoplib_vector_p, scoplib_vector_p);
00087 scoplib_vector_p scoplib_vector_sub(scoplib_vector_p, scoplib_vector_p);
00088 void             scoplib_vector_tag_inequality(scoplib_vector_p);
00089 void             scoplib_vector_tag_equality(scoplib_vector_p);
00090 
00091 # if defined(__cplusplus)
00092   }
00093 # endif
00094 #endif /* define SCOPLIB_VECTOR_H */

Generated on Tue Feb 19 2013 00:44:27 for ScopLib by  doxygen 1.7.1