From 6b0d08af507bca2016b6dac94cdf89868fac70d2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 1 Jan 2024 22:44:59 -0500 Subject: [PATCH] spelling: rounding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- mlx/types/fp16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/types/fp16.h b/mlx/types/fp16.h index 58e1bc088..c174afebc 100644 --- a/mlx/types/fp16.h +++ b/mlx/types/fp16.h @@ -68,7 +68,7 @@ struct _MLX_Float16 { inf_scale.u = uint32_t(0x77800000); zero_scale.u = uint32_t(0x08800000); - // Combine with magic and let addition do rouding + // Combine with magic and let addition do rounding magic_bits.u = x_expo_32; magic_bits.f += (std::abs(x) * inf_scale.f) * zero_scale.f;