aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Texture/Astc/Bits.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Texture/Astc/Bits.cs')
-rw-r--r--src/Ryujinx.Graphics.Texture/Astc/Bits.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/Ryujinx.Graphics.Texture/Astc/Bits.cs b/src/Ryujinx.Graphics.Texture/Astc/Bits.cs
index b140a20a..91652bf1 100644
--- a/src/Ryujinx.Graphics.Texture/Astc/Bits.cs
+++ b/src/Ryujinx.Graphics.Texture/Astc/Bits.cs
@@ -29,8 +29,15 @@
public static int Replicate(int value, int numberBits, int toBit)
{
- if (numberBits == 0) return 0;
- if (toBit == 0) return 0;
+ if (numberBits == 0)
+ {
+ return 0;
+ }
+
+ if (toBit == 0)
+ {
+ return 0;
+ }
int tempValue = value & ((1 << numberBits) - 1);
int retValue = tempValue;
@@ -60,7 +67,10 @@
b |= a & 0x80;
a >>= 1;
a &= 0x3F;
- if ((a & 0x20) != 0) a -= 0x40;
+ if ((a & 0x20) != 0)
+ {
+ a -= 0x40;
+ }
}
}
}