Changeset 75132 in vbox for trunk/include
- Timestamp:
- Oct 28, 2018 5:44:49 PM (6 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm-amd64-x86.h
r75131 r75132 88 88 * Undefine all symbols we have Watcom C/C++ #pragma aux'es for. 89 89 */ 90 #undef RT_ASM_DECL_PRAGMA_WATCOM91 90 #if defined(__WATCOMC__) && ARCH_BITS == 16 92 91 # include "asm-amd64-x86-watcom-16.h" 93 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type94 92 #elif defined(__WATCOMC__) && ARCH_BITS == 32 95 93 # include "asm-amd64-x86-watcom-32.h" 96 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type97 #else98 # define RT_ASM_DECL_PRAGMA_WATCOM(type) DECLASM(type)99 94 #endif 100 95 -
trunk/include/iprt/asm.h
r75131 r75132 89 89 * Undefine all symbols we have Watcom C/C++ #pragma aux'es for. 90 90 */ 91 #undef RT_ASM_DECL_PRAGMA_WATCOM92 91 #if defined(__WATCOMC__) && ARCH_BITS == 16 && defined(RT_ARCH_X86) 93 92 # include "asm-watcom-x86-16.h" 94 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type95 93 #elif defined(__WATCOMC__) && ARCH_BITS == 32 && defined(RT_ARCH_X86) 96 94 # include "asm-watcom-x86-32.h" 97 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type 98 #else 99 # define RT_ASM_DECL_PRAGMA_WATCOM(type) DECLASM(type) 100 #endif 101 95 #endif 102 96 103 97 … … 5223 5217 */ 5224 5218 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN 5225 RT_ASM_DECL_PRAGMA_WATCOM (unsigned) ASMBitFirstSetU32(uint32_t u32);5219 RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitFirstSetU32(uint32_t u32); 5226 5220 #else 5227 5221 DECLINLINE(unsigned) ASMBitFirstSetU32(uint32_t u32) … … 5289 5283 */ 5290 5284 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN 5291 RT_ASM_DECL_PRAGMA_WATCOM (unsigned) ASMBitFirstSetU64(uint64_t u64);5285 RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitFirstSetU64(uint64_t u64); 5292 5286 #else 5293 5287 DECLINLINE(unsigned) ASMBitFirstSetU64(uint64_t u64) … … 5344 5338 */ 5345 5339 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN 5346 RT_ASM_DECL_PRAGMA_WATCOM (unsigned) ASMBitFirstSetU16(uint16_t u16);5340 RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitFirstSetU16(uint16_t u16); 5347 5341 #else 5348 5342 DECLINLINE(unsigned) ASMBitFirstSetU16(uint16_t u16) … … 5363 5357 */ 5364 5358 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN 5365 RT_ASM_DECL_PRAGMA_WATCOM (unsigned) ASMBitLastSetU32(uint32_t u32);5359 RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitLastSetU32(uint32_t u32); 5366 5360 #else 5367 5361 DECLINLINE(unsigned) ASMBitLastSetU32(uint32_t u32) … … 5429 5423 */ 5430 5424 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN 5431 RT_ASM_DECL_PRAGMA_WATCOM (unsigned) ASMBitLastSetU64(uint64_t u64);5425 RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitLastSetU64(uint64_t u64); 5432 5426 #else 5433 5427 DECLINLINE(unsigned) ASMBitLastSetU64(uint64_t u64) … … 5482 5476 */ 5483 5477 #if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN 5484 RT_ASM_DECL_PRAGMA_WATCOM (unsigned) ASMBitLastSetU16(uint16_t u16);5478 RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitLastSetU16(uint16_t u16); 5485 5479 #else 5486 5480 DECLINLINE(unsigned) ASMBitLastSetU16(uint16_t u16) -
trunk/include/iprt/cdefs.h
r75131 r75132 1312 1312 */ 1313 1313 #define DECLASMTYPE(type) type RTCALL 1314 1315 /** @def RT_ASM_DECL_PRAGMA_WATCOM 1316 * How to declare a assembly method prototype with watcom \#pragma aux definition. */ 1317 /** @def RT_ASM_DECL_PRAGMA_WATCOM_386 1318 * Same as RT_ASM_DECL_PRAGMA_WATCOM, but there is no 16-bit version when 1319 * 8086, 80186 or 80286 is selected as the target CPU. */ 1320 #if defined(__WATCOMC__) && ARCH_BITS == 16 && defined(RT_ARCH_X86) 1321 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type 1322 # if defined(__SW_0) || defined(__SW_1) || defined(__SW_2) 1323 # define RT_ASM_DECL_PRAGMA_WATCOM_386(type) DECLASM(type) 1324 # else 1325 # define RT_ASM_DECL_PRAGMA_WATCOM_386(type) type 1326 # endif 1327 #elif defined(__WATCOMC__) && ARCH_BITS == 32 && defined(RT_ARCH_X86) 1328 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type 1329 # define RT_ASM_DECL_PRAGMA_WATCOM_386(type) type 1330 #else 1331 # define RT_ASM_DECL_PRAGMA_WATCOM(type) DECLASM(type) 1332 # define RT_ASM_DECL_PRAGMA_WATCOM_386(type) DECLASM(type) 1333 #endif 1314 1334 1315 1335 /** @def DECL_NO_RETURN
Note:
See TracChangeset
for help on using the changeset viewer.