xref: /aosp_15_r20/external/skia/resources/sksl/inliner/InlineWithNestedBigCalls.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1inline half BigX(half x) {
2    ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x;
3    --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x;
4    x = 1;
5    return x;
6}
7
8inline half BigY(half x) {
9    ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x;
10    --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x;
11    x = 0;
12    return x;
13}
14
15half4 main(float2 coords) {
16    return BigX(BigY(12345)).0x0x;
17}
18