Changeset 48500 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d
- Timestamp:
- Sep 16, 2013 7:52:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/glsl_shader.c
r48345 r48500 51 51 # define copysignf _copysignf 52 52 # else 53 # define _VBOX_FLOAT_BITVAL(_f) (*((const uint32_t*)((const void*)(&(_f))))) 53 # define _VBOX_BITVAL_CAST(_t, _f) (*((const _t*)((const void*)(&(_f))))) 54 # define _VBOX_BITVAL_TO_FLOATL(_f) _VBOX_BITVAL_CAST(float, _f) 55 # define _VBOX_BITVAL_FROM_FLOAT(_f) _VBOX_BITVAL_CAST(uint32_t, _f) 54 56 DECLINLINE(float) copysignf(float val, float sign) 55 57 { 56 return ((_VBOX_FLOAT_BITVAL(val) & 0x7fffffff) | (_VBOX_FLOAT_BITVAL(sign) & 0x80000000)); 58 uint32_t u32Val = ((_VBOX_BITVAL_FROM_FLOAT(val) & 0x7fffffff) | (_VBOX_BITVAL_FROM_FLOAT(sign) & 0x80000000)); 59 return _VBOX_BITVAL_TO_FLOATL(u32Val); 57 60 } 58 61 # endif
Note:
See TracChangeset
for help on using the changeset viewer.