Dec constants was changed with hex constants.

This commit is contained in:
Vsevolod Livinskij
2014-02-20 22:57:24 +04:00
parent 735e6a8ab3
commit 7dd7020c5f
44 changed files with 144 additions and 145 deletions

View File

@@ -2,7 +2,7 @@
export uniform int width() { return programCount; }
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
varying int64 a_max = 9223372036854775807, a_min = -9223372036854775808; // max and min signed int64
varying int64 a_max = 0x7FFFFFFFFFFFFFFF, a_min = -0x8000000000000000; // max and min signed int64
if (programIndex % 3 == 0) {
RET[programIndex] = saturating_add(a_max, b);
}
@@ -16,12 +16,12 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
export void result(uniform float RET[]) {
if (programIndex % 3 == 0) {
RET[programIndex] = (varying int64) 9223372036854775807;
RET[programIndex] = (varying int64) 0x7FFFFFFFFFFFFFFF; // max signed int64
}
else if (programIndex % 3 == 1) {
RET[programIndex] = (varying int64) -9223372036854775808;
RET[programIndex] = (varying int64) -0x8000000000000000; // min signed int64
}
else {
RET[programIndex] = (varying int64) -9223372036854775803;
RET[programIndex] = (varying int64) -0x7FFFFFFFFFFFFFFB; // min + 5
}
}