MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / decodeFloat

Function decodeFloat

physx/source/lowlevelaabb/include/BpBroadPhaseUpdate.h:151–157  ·  view source on GitHub ↗

\brief Encode a single float value with lossless encoding to integer */

Source from the content-addressed store, hash-verified

149 \brief Encode a single float value with lossless encoding to integer
150 */
151 PX_FORCE_INLINE PxU32 decodeFloat(PxU32 ir)
152 {
153 if(ir & PX_SIGN_BITMASK) //positive?
154 return ir & ~PX_SIGN_BITMASK; //flip sign
155 else
156 return ~ir; //undo reversal
157 }
158
159
160/**

Callers 4

shiftCoord3Function · 0.85
decodeMethod · 0.85
decodeMethod · 0.85
decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected