The Base64 functions that used to produce garbage no longer do

This commit is contained in:
Sei Lisa 2021-03-21 19:05:37 +01:00
parent b6a5e01ed4
commit 53e8bd659a
6 changed files with 35 additions and 30 deletions

View file

@ -0,0 +1,13 @@
// Some Base64 functions used to return garbage, now they no longer do
default
{
timer()
{
llSetPrimitiveParams( // we need a function that causes side effects,
// so that it isn't optimized out
[ llXorBase64StringsCorrect("++++", "?")
, llXorBase64("++++", "?")
, llBase64ToInteger("ABC")
]);
}
}

View file

@ -0,0 +1,7 @@
default
{
timer()
{
llSetPrimitiveParams((list)"++++" + "++++" + 1048576);
}
}

View file

@ -0,0 +1 @@
main.py -y -O -dcr,-optfloats -

View file

@ -22,9 +22,6 @@ default
, llGetDisplayName(TEXTURE_BLANK)
, llGetEnv("estate_name")
, llXorBase64Strings("++++", "?")
, llXorBase64StringsCorrect("++++", "?")
, llXorBase64("++++", "?")
, llBase64ToInteger("ABC")
, llAbs(-2147483648)
]);
}

View file

@ -20,9 +20,6 @@ default
, llGetDisplayName("5748decc-f629-461c-9a36-a35a221fe21f")
, llGetEnv("estate_name")
, llXorBase64Strings("++++", "?")
, llXorBase64StringsCorrect("++++", "?")
, llXorBase64("++++", "?")
, llBase64ToInteger("ABC")
, llAbs(((integer)-2147483648))
]);
}