/**************************************************************************** | | (C) Copyright 1985, 1991, 1993, 1996 Novell, Inc. | All Rights Reserved. | | This program is free software; you can redistribute it and/or | modify it under the terms of version 2 of the GNU General Public | License as published by the Free Software Foundation. | | This program is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | GNU General Public License for more details. | | You should have received a copy of the GNU General Public License | along with this program; if not, contact Novell, Inc. | | To contact Novell about this file by physical or electronic mail, | you may find current contact information at www.novell.com | |*************************************************************************** | | NetWare Advance File Services (NSS) module | |--------------------------------------------------------------------------- | | $Author: taysom $ | $Date: 2004-12-31 01:10:58 +0530 (Fri, 31 Dec 2004) $ | | $RCSfile$ | $Revision: 465 $ | |--------------------------------------------------------------------------- | This module is used to: | NSS Library routine | | WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! | | This header file should ONLY be used for NSS internal development. | This includes Semantic Agents (SA) and Loadable Storage Services (LSS). | Any other use may cause conflicts which NSS will NOT fix. +-------------------------------------------------------------------------*/ #ifndef _BIT_H_ #define _BIT_H_ #ifndef _OMNI_H_ #include #endif #ifdef _WATCOMC_ #ifndef _INLINES_H_ #include #endif #endif #ifdef __cplusplus extern "C" { #endif /* Translate the names */ #define CountBits(p1) LB_CountBits(p1) #define findHighBit(p1) LB_findHighBit(p1) #define findLowBit(p1) LB_findLowBit(p1) extern NINT LB_CountBits(NINT word); extern NINT LB_findHighBit(NINT n); extern NINT LB_findLowBit(NINT n); #ifdef _WATCOMC_ #define RotateLeft(v,n) inline_RotateLeft(v,n) #define RotateRight(v,n) inline_RotateRight(v,n) #else #define RotateLeft(p1,p2) LB_RotateLeft(p1,p2) #define RotateRight(p1,p2) LB_RotateRight(p1,p2) NINT LB_RotateLeft(NINT value, NINT numBits); NINT LB_RotateRight(NINT value, NINT numBits); #endif #ifdef __cplusplus } #endif #endif