VirtualBox

Changeset 75132 in vbox for trunk/include


Ignore:
Timestamp:
Oct 28, 2018 5:44:49 PM (6 years ago)
Author:
vboxsync
Message:

iprt/asm.h,cdefs.h: More watcom adjustments.

Location:
trunk/include/iprt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm-amd64-x86.h

    r75131 r75132  
    8888 * Undefine all symbols we have Watcom C/C++ #pragma aux'es for.
    8989 */
    90 #undef RT_ASM_DECL_PRAGMA_WATCOM
    9190#if defined(__WATCOMC__) && ARCH_BITS == 16
    9291# include "asm-amd64-x86-watcom-16.h"
    93 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type
    9492#elif defined(__WATCOMC__) && ARCH_BITS == 32
    9593# include "asm-amd64-x86-watcom-32.h"
    96 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type
    97 #else
    98 # define RT_ASM_DECL_PRAGMA_WATCOM(type) DECLASM(type)
    9994#endif
    10095
  • trunk/include/iprt/asm.h

    r75131 r75132  
    8989 * Undefine all symbols we have Watcom C/C++ #pragma aux'es for.
    9090 */
    91 #undef RT_ASM_DECL_PRAGMA_WATCOM
    9291#if defined(__WATCOMC__) && ARCH_BITS == 16 && defined(RT_ARCH_X86)
    9392# include "asm-watcom-x86-16.h"
    94 # define RT_ASM_DECL_PRAGMA_WATCOM(type) type
    9593#elif defined(__WATCOMC__) && ARCH_BITS == 32 && defined(RT_ARCH_X86)
    9694# 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
    10296
    10397
     
    52235217 */
    52245218#if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN
    5225 RT_ASM_DECL_PRAGMA_WATCOM(unsigned) ASMBitFirstSetU32(uint32_t u32);
     5219RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitFirstSetU32(uint32_t u32);
    52265220#else
    52275221DECLINLINE(unsigned) ASMBitFirstSetU32(uint32_t u32)
     
    52895283 */
    52905284#if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN
    5291 RT_ASM_DECL_PRAGMA_WATCOM(unsigned) ASMBitFirstSetU64(uint64_t u64);
     5285RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitFirstSetU64(uint64_t u64);
    52925286#else
    52935287DECLINLINE(unsigned) ASMBitFirstSetU64(uint64_t u64)
     
    53445338 */
    53455339#if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN
    5346 RT_ASM_DECL_PRAGMA_WATCOM(unsigned) ASMBitFirstSetU16(uint16_t u16);
     5340RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitFirstSetU16(uint16_t u16);
    53475341#else
    53485342DECLINLINE(unsigned) ASMBitFirstSetU16(uint16_t u16)
     
    53635357 */
    53645358#if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN
    5365 RT_ASM_DECL_PRAGMA_WATCOM(unsigned) ASMBitLastSetU32(uint32_t u32);
     5359RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitLastSetU32(uint32_t u32);
    53665360#else
    53675361DECLINLINE(unsigned) ASMBitLastSetU32(uint32_t u32)
     
    54295423 */
    54305424#if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN
    5431 RT_ASM_DECL_PRAGMA_WATCOM(unsigned) ASMBitLastSetU64(uint64_t u64);
     5425RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitLastSetU64(uint64_t u64);
    54325426#else
    54335427DECLINLINE(unsigned) ASMBitLastSetU64(uint64_t u64)
     
    54825476 */
    54835477#if RT_INLINE_ASM_EXTERNAL && !RT_INLINE_ASM_USES_INTRIN
    5484 RT_ASM_DECL_PRAGMA_WATCOM(unsigned) ASMBitLastSetU16(uint16_t u16);
     5478RT_ASM_DECL_PRAGMA_WATCOM_386(unsigned) ASMBitLastSetU16(uint16_t u16);
    54855479#else
    54865480DECLINLINE(unsigned) ASMBitLastSetU16(uint16_t u16)
  • trunk/include/iprt/cdefs.h

    r75131 r75132  
    13121312 */
    13131313#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
    13141334
    13151335/** @def DECL_NO_RETURN
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette