VirtualBox

Changeset 34764 in vbox


Ignore:
Timestamp:
Dec 6, 2010 5:10:32 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68570
Message:

no 64-bit div here

File:
1 edited

Legend:

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

    r34763 r34764  
    5454#endif
    5555#include "vboxvideo.h"
     56#include <iprt/asm-math.h>
    5657#include "version-generated.h"
    5758#include "product-generated.h"
     
    701702vboxDisplayPitch(ScrnInfoPtr pScrn, int32_t cbLine)
    702703{
    703     return (uint64_t)cbLine * 8 / vboxBPP(pScrn);
     704    return ASMDivU64ByU32RetU32((uint64_t)cbLine * 8, vboxBPP(pScrn));
    704705}
    705706
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