Skip to content

Commit

Permalink
Only keep used memory instead of flushing all registers
Browse files Browse the repository at this point in the history
  • Loading branch information
astrelsky committed May 25, 2020
1 parent 96bbcfc commit d6f724f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,9 +1014,8 @@ static void VU0MixVec(VU_VECTOR *a, VU_VECTOR *b, float mix, VU_VECTOR *res)
"vmaddx.xyzw vf1, vf2, vf4x\n" // multiply vf2 by vf4.x add ACC, store the result in vf1
"sqc2 vf1, (%[res])\n" // transfer the result in acc to the ee
#endif
: [res] "+r"(res)
: [a] "r"(a), [b] "r"(b), [mix] "r"(mix)
: "memory");
: [res] "+r"(res), "=m"(*res)
: [a] "r"(a), [b] "r"(b), [mix] "r"(mix), "m"(*a), "m"(*b));
}

static float guiCalcPerlin(float x, float y, float z)
Expand Down

0 comments on commit d6f724f

Please sign in to comment.