From 8220c00a3d68a8d2b21da2f5352e1971b89588c0 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Sun, 9 Mar 2025 20:05:01 +0100 Subject: [PATCH] small correction for floating point h --- src/vm/fp_functions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vm/fp_functions.cpp b/src/vm/fp_functions.cpp index 35fd2ce..75b6903 100644 --- a/src/vm/fp_functions.cpp +++ b/src/vm/fp_functions.cpp @@ -123,18 +123,18 @@ uint16_t fcvt_h(uint16_t v1, uint16_t op, uint8_t mode) { softfloat_exceptionFlags = 0; float16_t r; switch(op) { - case 0: { // FCVT__W__S + case 0: { // FCVT__W__H uint_fast16_t res = f16_to_i32(v1f, mode, true); return (uint16_t)res; } - case 1: { // FCVT__WU__S + case 1: { // FCVT__WU__H uint_fast16_t res = f16_to_ui32(v1f, mode, true); return (uint16_t)res; } - case 2: // FCVT__S__W + case 2: // FCVT__H__W r = i32_to_f16((int16_t)v1); return r.v; - case 3: // FCVT__S__WU + case 3: // FCVT__H__WU r = ui32_to_f16(v1); return r.v; }