1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2004 Cluster File Systems, Inc.
5 * Author: Nikita Danilov <nikita@clusterfs.com>
7 * This file is part of Lustre, http://www.lustre.org.
9 * Lustre is free software; you can redistribute it and/or modify it under the
10 * terms of version 2 of the GNU General Public License as published by the
11 * Free Software Foundation.
13 * Lustre is distributed in the hope that it will be useful, but WITHOUT ANY
14 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18 * You should have received a copy of the GNU General Public License along
19 * with Lustre; if not, write to the Free Software Foundation, Inc., 675 Mass
20 * Ave, Cambridge, MA 02139, USA.
22 * Implementation of portable time API for user-level.
26 #ifndef __LIBCFS_USER_BITOPS_H__
27 #define __LIBCFS_USER_BITOPS_H__
29 unsigned long find_next_bit(const unsigned int *addr,
30 unsigned long size, unsigned long offset);
32 unsigned long find_next_zero_bit(const unsigned int *addr,
33 unsigned long size, unsigned long offset);
35 #define find_first_bit(addr,size) (find_next_bit((addr),(size),0))
36 #define find_first_zero_bit(addr,size) (find_next_zero_bit((addr),(size),0))