X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f5e8daaa6e9f74521068aa75837200bcd182ea6..41c803093e7108f16bfb4cc7e2c41c52104c73c2:/src/xbt/setset_private.h diff --git a/src/xbt/setset_private.h b/src/xbt/setset_private.h index 6e12ee469c..3099ed18d5 100644 --- a/src/xbt/setset_private.h +++ b/src/xbt/setset_private.h @@ -1,3 +1,10 @@ +/* Copyright (c) 2010, 2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +#include "xbt/base.h" #include "xbt/dict.h" #include "xbt/dynar.h" #include "xbt/setset.h" @@ -38,16 +45,16 @@ typedef struct s_xbt_setset_cursor { /* Some internal functions */ -int bitcount(int); +XBT_PRIVATE int bitcount(int); /* Get the object associated to a given index */ -void *_xbt_setset_idx_to_obj(xbt_setset_t setset, unsigned long idx); +XBT_PRIVATE void *_xbt_setset_idx_to_obj(xbt_setset_t setset, unsigned long idx); /* Check if the nth bit of an integer is set or not*/ -unsigned int _is_bit_set(unsigned int bit, unsigned int integer); +XBT_PRIVATE unsigned int _is_bit_set(unsigned int bit, unsigned int integer); /* Set the nth bit of an array of integers */ -void _set_bit(unsigned int bit, unsigned int *bitmap); +XBT_PRIVATE void _set_bit(unsigned int bit, unsigned int *bitmap); /* Unset the nth bit of an array of integers */ -void _unset_bit(unsigned int bit, unsigned int *bitmap); +XBT_PRIVATE void _unset_bit(unsigned int bit, unsigned int *bitmap);