sl@0: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Utility functions for the Mass Storage file system. sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: sl@0: Indicates if a number passed in is a power of two sl@0: sl@0: @param aNum number to be tested sl@0: @return Flag to indicate the result of the test sl@0: */ sl@0: GLREF_C TBool IsPowerOfTwo(TInt aNum); sl@0: sl@0: /** sl@0: Calculates the log2 of a number sl@0: sl@0: @param aNum Number to calulate the log two of sl@0: @return The log two of the number passed in sl@0: */ sl@0: GLREF_C TInt Log2(TInt aNum); sl@0: