Whamcloud - gitweb
revert bz-14390 commit which is causing build failures on buffalo.
[fs/lustre-release.git] / lnet / include / libcfs / user-bitops.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * Copyright (C) 2004 Cluster File Systems, Inc.
5  * Author: Nikita Danilov <nikita@clusterfs.com>
6  *
7  * This file is part of Lustre, http://www.lustre.org.
8  *
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.
12  *
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
16  * details.
17  *
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.
21  *
22  * Implementation of portable time API for user-level.
23  *
24  */
25
26 #ifndef __LIBCFS_USER_BITOPS_H__
27 #define __LIBCFS_USER_BITOPS_H__
28
29 unsigned long find_next_bit(const unsigned int *addr,
30                 unsigned long size, unsigned long offset);
31
32 unsigned long find_next_zero_bit(const unsigned int *addr,
33                 unsigned long size, unsigned long offset);
34
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))
37
38 #endif