Advertisement
FireBurn

math.cpp patch

Dec 22nd, 2017
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. diff --git a/src/util/math.cpp b/src/util/math.cpp
  2. index 46e9ede..3af4259 100644
  3. --- a/src/util/math.cpp
  4. +++ b/src/util/math.cpp
  5. @@ -54,7 +54,7 @@ static uint32 Float32ToFloatN(float f, const NBitFloatInfo& info);
  6. static float FloatNToFloat32(uint32 fBits, const NBitFloatInfo& info);
  7.  
  8. // Initialize the descriptors for various N-bit floating point representations:
  9. -static constexpr NBitFloatInfo Float16Info =
  10. +static NBitFloatInfo Float16Info =
  11. {
  12. 16, // numBits
  13. 10, // numFracBits
  14. @@ -72,7 +72,7 @@ static constexpr NBitFloatInfo Float16Info =
  15. (23 - 10), // fracBitsDiff
  16. };
  17.  
  18. -static constexpr NBitFloatInfo Float11Info =
  19. +static NBitFloatInfo Float11Info =
  20. {
  21. 11, // numBits
  22. 6, // numFracBits
  23. @@ -90,7 +90,7 @@ static constexpr NBitFloatInfo Float11Info =
  24. 23 - 6, // fracBitsDiff
  25. };
  26.  
  27. -static constexpr NBitFloatInfo Float10Info =
  28. +static NBitFloatInfo Float10Info =
  29. {
  30. 10, // numBits
  31. 5, // numFracBits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement