DoubleToBits - This function takes a double and returns the bit equivalent 64-bit integer. Note that copying doubles around changes the bits of NaNs on some hosts, notably x86, so this routine cannot be used if these bits are needed.
| 331 | /// changes the bits of NaNs on some hosts, notably x86, so this |
| 332 | /// routine cannot be used if these bits are needed. |
| 333 | static inline uint64_t DoubleToBits(double Double) { |
| 334 | union { |
| 335 | uint64_t L; |
| 336 | double D; |
| 337 | } T; |
| 338 | T.D = Double; |
| 339 | return T.L; |
| 340 | } |
| 341 | |
| 342 | /// FloatToBits - This function takes a float and returns the bit |
| 343 | /// equivalent 32-bit integer. Note that copying floats around |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…