diff -r a41df078684a -r 4122176ea935 userlibandfileserver/fileserver/sfat/inc/sl_std.inl --- a/userlibandfileserver/fileserver/sfat/inc/sl_std.inl Mon Oct 19 15:55:17 2009 +0100 +++ b/userlibandfileserver/fileserver/sfat/inc/sl_std.inl Mon Dec 21 16:14:42 2009 +0000 @@ -15,6 +15,14 @@ // // +//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +//!! +//!! WARNING!! DO NOT edit this file !! '\sfat' component is obsolete and is not being used. '\sfat32'replaces it +//!! +//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + #ifndef SL_STD_INL #define SL_STD_INL @@ -22,8 +30,8 @@ TBool IsPowerOf2(TUint32 aVal) { - if (aVal==0) - return EFalse; + if (aVal==0) + return EFalse; return !(aVal & (aVal-1)); } @@ -68,7 +76,7 @@ inline TInt CFatMountCB::StartCluster(const TFatDirEntry & anEntry) const - {return anEntry.StartCluster();} + {return anEntry.StartCluster();} @@ -80,18 +88,18 @@ @return Whether Root dir position or not */ TBool CFatMountCB::IsRootDir(const TEntryPos &aEntry) const - {return((aEntry.iCluster==0) ? (TBool)ETrue : (TBool)EFalse);} + {return((aEntry.iCluster==0) ? (TBool)ETrue : (TBool)EFalse);} /** Indicates the root directory cluster, For Fat12/16 root is always indicated by cluster number zero @return The root cluster indicator */ TInt CFatMountCB::RootIndicator() const - {return 0;} + {return 0;} TBool CFatMountCB::Is16BitFat() const - {return(iFatType == EFat16);} + {return(iFatType == EFat16);} /** @return Log2 of cluster size on volume */ TInt CFatMountCB::ClusterSizeLog2() const @@ -107,11 +115,11 @@ /** @return the base position of a cluster */ TInt CFatMountCB::ClusterBasePosition() const - {return(iFirstFreeByte);} + {return(iFirstFreeByte);} /** @return the offset into a cluster of a byte address */ TInt CFatMountCB::ClusterRelativePos(TInt aPos) const - {return(aPos&((1<=0xFFF8 && aCluster<=0xFFFF);} + {return(aCluster>=0xFFF8 && aCluster<=0xFFFF);} TBool CFatTable::IsEof12Bit(TInt aCluster) const - {return(aCluster>=0xFF8 && aCluster<=0xFFF);} + {return(aCluster>=0xFF8 && aCluster<=0xFFF);} TInt CFatTable::SectorSizeLog2() const - {return(iOwner->SectorSizeLog2());} + {return(iOwner->SectorSizeLog2());} //--------------------------------------------------------------------------------------------------------------------------------- @@ -465,7 +473,7 @@ // class TFatDriveInterface TBool TFatDriveInterface::NotifyUser() const - {return(iMount->GetNotifyUser());} + {return(iMount->GetNotifyUser());} @@ -484,7 +492,7 @@ return NULL; } -//--------------------------------------------------------------------------------------------------------------------------------- +//--------------------------------------------------------------------------------------------------------------------------------- //-- class RBitVector /** @return size of the vector (number of bits) */ @@ -574,13 +582,13 @@ /** Calculate offset of the page starting position in the cluster @param aPos the current entry position in bytes in the cluster - @param aPageSzLog2 page size in log2 - @return the starting position of the page that contains aPos + @param aPageSzLog2 page size in log2 + @return the starting position of the page that contains aPos */ inline TUint32 CalculatePageOffsetInCluster(TUint32 aPos, TUint aPageSzLog2) - { - return (aPos >> aPageSzLog2) << aPageSzLog2; - } + { + return (aPos >> aPageSzLog2) << aPageSzLog2; + } #endif //SL_STD_INL