Changeset 58767 in vbox
- Timestamp:
- Nov 19, 2015 1:30:30 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104211
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r58766 r58767 4797 4797 * @returns 0 if all bits are cleared. 4798 4798 * @param u32 Integer to search for set bits. 4799 * @remark sSimilar to ffs() in BSD.4799 * @remark Similar to ffs() in BSD. 4800 4800 */ 4801 4801 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN … … 4856 4856 4857 4857 /** 4858 * Finds the first bit which is set in the given 16-bit integer.4859 *4860 * Bits are numbered from 1 (least significant) to 16.4861 *4862 * @returns index [1..16] of the first set bit.4863 * @returns 0 if all bits are cleared.4864 * @param u16 Integer to search for set bits.4865 * @remarks For 16-bit bs3kit code.4866 */4867 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN4868 DECLASM(unsigned) ASMBitFirstSetU16(uint32_t u16);4869 #else4870 DECLINLINE(unsigned) ASMBitFirstSetU16(uint32_t u16)4871 {4872 return ASMBitFirstSetU32((uint32_t)u16);4873 }4874 #endif4875 4876 4877 /**4878 4858 * Finds the last bit which is set in the given 32-bit integer. 4879 4859 * Bits are numbered from 1 (least significant) to 32. … … 4938 4918 return ASMBitLastSetU32((uint32_t)i32); 4939 4919 } 4940 4941 4942 /**4943 * Finds the last bit which is set in the given 16-bit integer.4944 *4945 * Bits are numbered from 1 (least significant) to 16.4946 *4947 * @returns index [1..16] of the last set bit.4948 * @returns 0 if all bits are cleared.4949 * @param u16 Integer to search for set bits.4950 * @remarks For 16-bit bs3kit code.4951 */4952 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN4953 DECLASM(unsigned) ASMBitLastSetU16(uint32_t u16);4954 #else4955 DECLINLINE(unsigned) ASMBitLastSetU16(uint32_t u16)4956 {4957 return ASMBitLastSetU32((uint32_t)u16);4958 }4959 #endif4960 4961 4920 4962 4921 /** -
trunk/include/iprt/file.h
r58766 r58767 98 98 /** @name Open flags 99 99 * @{ */ 100 /** Attribute access only.101 * @remarks Only accepted on windows, requires RTFILE_O_ACCESS_ATTR_MASK102 * to yield a non-zero result. Otherwise, this is invalid. */103 #define RTFILE_O_ATTR_ONLY UINT32_C(0x00000000)104 100 /** Open the file with read access. */ 105 101 #define RTFILE_O_READ UINT32_C(0x00000001) … … 109 105 #define RTFILE_O_READWRITE UINT32_C(0x00000003) 110 106 /** The file access mask. 111 * @remarks The value 0 is invalid , except for windows special case. */107 * @remarks The value 0 is invalid. */ 112 108 #define RTFILE_O_ACCESS_MASK UINT32_C(0x00000003) 113 109 -
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r58766 r58767 213 213 : FILE_GENERIC_READ | FILE_GENERIC_WRITE; 214 214 break; 215 case RTFILE_O_ATTR_ONLY:216 if (fOpen & RTFILE_O_ACCESS_ATTR_MASK)217 {218 dwDesiredAccess = 0;219 break;220 }221 /* fall thru */222 215 default: 223 216 AssertMsgFailed(("Impossible fOpen=%#llx\n", fOpen));
Note:
See TracChangeset
for help on using the changeset viewer.