mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 09:12:46 +01:00
glasm: Remove unnecesary new white space on Clamp GLASM
This commit is contained in:
parent
b4953e79ee
commit
45ef62d3ba
1 changed files with 4 additions and 4 deletions
|
@ -141,14 +141,14 @@ void EmitUMax32(EmitContext& ctx, IR::Inst& inst, ScalarU32 a, ScalarU32 b) {
|
||||||
|
|
||||||
void EmitSClamp32(EmitContext& ctx, IR::Inst& inst, ScalarS32 value, ScalarS32 min, ScalarS32 max) {
|
void EmitSClamp32(EmitContext& ctx, IR::Inst& inst, ScalarS32 value, ScalarS32 min, ScalarS32 max) {
|
||||||
const Register ret{ctx.reg_alloc.Define(inst)};
|
const Register ret{ctx.reg_alloc.Define(inst)};
|
||||||
ctx.Add("MIN.S {}.x,{},{};", ret, max, value);
|
ctx.Add("MIN.S {}.x,{},{};", ret, max, value);
|
||||||
ctx.Add("MAX.S {}.x,{},{};", ret, ret, min);
|
ctx.Add("MAX.S {}.x,{},{};", ret, ret, min);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitUClamp32(EmitContext& ctx, IR::Inst& inst, ScalarU32 value, ScalarU32 min, ScalarU32 max) {
|
void EmitUClamp32(EmitContext& ctx, IR::Inst& inst, ScalarU32 value, ScalarU32 min, ScalarU32 max) {
|
||||||
const Register ret{ctx.reg_alloc.Define(inst)};
|
const Register ret{ctx.reg_alloc.Define(inst)};
|
||||||
ctx.Add("MIN.U {}.x,{},{};", ret, max, value);
|
ctx.Add("MIN.U {}.x,{},{};", ret, max, value);
|
||||||
ctx.Add("MAX.U {}.x,{},{};", ret, ret, min);
|
ctx.Add("MAX.U {}.x,{},{};", ret, ret, min);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) {
|
void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) {
|
||||||
|
|
Loading…
Reference in a new issue