mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-03 12:20:57 +00:00
etcpak: The fma function is not a member of the std namespace.
git-svn-id: https://svn.eduke32.com/eduke32@5682 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b2339862ce
commit
7a940a255f
1 changed files with 10 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "Math.hpp"
|
#include "Math.hpp"
|
||||||
|
@ -547,15 +548,15 @@ std::pair<uint64, uint64> Planar(const uint8* src)
|
||||||
float dB = b * (4.0f / 16.0f);
|
float dB = b * (4.0f / 16.0f);
|
||||||
|
|
||||||
// calculating the three colors RGBO, RGBH, and RGBV. RGB = df - af * x - bf * y;
|
// calculating the three colors RGBO, RGBH, and RGBV. RGB = df - af * x - bf * y;
|
||||||
float cofR = std::fma(aR, 255.0f, std::fma(bR, 255.0f, dR));
|
float cofR = fma(aR, 255.0f, fma(bR, 255.0f, dR));
|
||||||
float cofG = std::fma(aG, 255.0f, std::fma(bG, 255.0f, dG));
|
float cofG = fma(aG, 255.0f, fma(bG, 255.0f, dG));
|
||||||
float cofB = std::fma(aB, 255.0f, std::fma(bB, 255.0f, dB));
|
float cofB = fma(aB, 255.0f, fma(bB, 255.0f, dB));
|
||||||
float chfR = std::fma(aR, -425.0f, std::fma(bR, 255.0f, dR));
|
float chfR = fma(aR, -425.0f, fma(bR, 255.0f, dR));
|
||||||
float chfG = std::fma(aG, -425.0f, std::fma(bG, 255.0f, dG));
|
float chfG = fma(aG, -425.0f, fma(bG, 255.0f, dG));
|
||||||
float chfB = std::fma(aB, -425.0f, std::fma(bB, 255.0f, dB));
|
float chfB = fma(aB, -425.0f, fma(bB, 255.0f, dB));
|
||||||
float cvfR = std::fma(aR, 255.0f, std::fma(bR, -425.0f, dR));
|
float cvfR = fma(aR, 255.0f, fma(bR, -425.0f, dR));
|
||||||
float cvfG = std::fma(aG, 255.0f, std::fma(bG, -425.0f, dG));
|
float cvfG = fma(aG, 255.0f, fma(bG, -425.0f, dG));
|
||||||
float cvfB = std::fma(aB, 255.0f, std::fma(bB, -425.0f, dB));
|
float cvfB = fma(aB, 255.0f, fma(bB, -425.0f, dB));
|
||||||
|
|
||||||
// convert to r6g7b6
|
// convert to r6g7b6
|
||||||
int32 coR = convert6(cofR);
|
int32 coR = convert6(cofR);
|
||||||
|
|
Loading…
Reference in a new issue