diff --git a/src/ImageSharp/Common/Extensions/Vector4Extensions.cs b/src/ImageSharp/Common/Extensions/Vector4Extensions.cs
index 31f3f32ae7..fac33da140 100644
--- a/src/ImageSharp/Common/Extensions/Vector4Extensions.cs
+++ b/src/ImageSharp/Common/Extensions/Vector4Extensions.cs
@@ -5,7 +5,6 @@
namespace ImageSharp
{
- using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using ImageSharp.PixelFormats;
@@ -13,7 +12,7 @@ namespace ImageSharp
///
/// Extension methods for the struct.
///
- public static class Vector4Extensions
+ internal static class Vector4Extensions
{
///
/// Compresses a linear color signal to its sRGB equivalent.
@@ -22,6 +21,7 @@ namespace ImageSharp
///
/// The whose signal to compress.
/// The .
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector4 Compress(this Vector4 linear)
{
// TODO: Is there a faster way to do this?
@@ -35,6 +35,7 @@ namespace ImageSharp
///
/// The whose signal to expand.
/// The .
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector4 Expand(this Vector4 gamma)
{
// TODO: Is there a faster way to do this?