VirtualBox

Ignore:
Timestamp:
Jan 30, 2013 10:56:50 AM (12 years ago)
Author:
vboxsync
Message:

Additions/x11: prevent referencing udiv3 by 32-bit vboxvideo_drv.o

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r43270 r44454  
    5555#include <VBox/VBoxVideoGuest.h>
    5656#include <VBox/VBoxVideo.h>
     57#include <iprt/asm.math.h>
    5758
    5859#ifdef DEBUG
     
    265266static inline int32_t vboxDisplayPitch(ScrnInfoPtr pScrn, int32_t cbLine)
    266267{
    267     return (int32_t)((uint64_t)cbLine * 8 / vboxBPP(pScrn));
     268    /* take care to reference __udivdi3! */
     269    return ASMDivU64ByU32RetU32((uint64_t)cbLine * 8, vboxBPP(pScrn));
    268270}
    269271
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