Changeset 70938 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 9, 2018 5:32:07 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120779
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.m
r69500 r70938 48 48 /**@def FLOAT_FMT_STR 49 49 * Format string bits to go with FLOAT_FMT_ARGS. */ 50 #define FLOAT_FMT_STR "%d.%06 d"50 #define FLOAT_FMT_STR "%d.%06u" 51 51 /** @def FLOAT_FMT_ARGS 52 52 * Format arguments for a float value, corresponding to FLOAT_FMT_STR. 53 53 * @param r The floating point value to format. */ 54 #define FLOAT_FMT_ARGS(r) (int)(r), ((unsigned)( (r) * 1000000) % 1000000U)54 #define FLOAT_FMT_ARGS(r) (int)(r), ((unsigned)(RT_ABS(r) * 1000000) % 1000000U) 55 55 56 56 -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-info.cpp
r69923 r70938 1694 1694 pHlp->pfnPrintf(pHlp, "%s[%#x(%u)] = [" FLOAT_FMT_STR ", " FLOAT_FMT_STR ", " FLOAT_FMT_STR ", " FLOAT_FMT_STR "] ctype=FLOAT\n", 1695 1695 pszName, i, i, 1696 FLOAT_FMT_ARGS( paConsts[i].value[0]), FLOAT_FMT_ARGS(paConsts[i].value[1]),1697 FLOAT_FMT_ARGS( paConsts[i].value[2]), FLOAT_FMT_ARGS(paConsts[i].value[3]));1696 FLOAT_FMT_ARGS(*(float *)&paConsts[i].value[0]), FLOAT_FMT_ARGS(*(float *)&paConsts[i].value[1]), 1697 FLOAT_FMT_ARGS(*(float *)&paConsts[i].value[2]), FLOAT_FMT_ARGS(*(float *)&paConsts[i].value[3])); 1698 1698 else 1699 1699 pHlp->pfnPrintf(pHlp, "%s[%#x(%u)] = [%#x, %#x, %#x, %#x] ctype=%s\n", -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.h
r69922 r70938 42 42 /**@def FLOAT_FMT_STR 43 43 * Format string bits to go with FLOAT_FMT_ARGS. */ 44 #define FLOAT_FMT_STR "%d.%06 d"44 #define FLOAT_FMT_STR "%d.%06u" 45 45 /** @def FLOAT_FMT_ARGS 46 46 * Format arguments for a float value, corresponding to FLOAT_FMT_STR. 47 47 * @param r The floating point value to format. */ 48 #define FLOAT_FMT_ARGS(r) (int)(r), ((unsigned)( (r) * 1000000) % 1000000U)48 #define FLOAT_FMT_ARGS(r) (int)(r), ((unsigned)(RT_ABS(r) * 1000000) % 1000000U) 49 49 50 50
Note:
See TracChangeset
for help on using the changeset viewer.