From f43e51b44a95ffb2dcea3e193be0b5656f412f83 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 16 May 2023 17:27:24 -0700 Subject: [PATCH] rephrase to avoid personal pronouns --- .../sv/int_fp_mv/moves_and_conversions.mdwn | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/openpower/sv/int_fp_mv/moves_and_conversions.mdwn b/openpower/sv/int_fp_mv/moves_and_conversions.mdwn index a97c70a07..94fd1f7fc 100644 --- a/openpower/sv/int_fp_mv/moves_and_conversions.mdwn +++ b/openpower/sv/int_fp_mv/moves_and_conversions.mdwn @@ -329,7 +329,7 @@ languages and ISAs have made different choices. Below is an overview of the different variants, listing the languages and hardware that implements each variant. -For convenience, we will give those different conversion semantics names +For convenience, those different conversion semantics will be given names based on which common ISA or programming language uses them, since there may not be an established name for them: @@ -528,10 +528,11 @@ Section 7.1 of the ECMAScript / JavaScript result <- si64_CONVERT_FROM_BFP(range_max) default: # JavaScript semantics # CVM = 6, 7 are illegal instructions - # this works because the largest type we try to convert from has - # 53 significand bits, and the largest type we try to convert to - # has 64 bits, and the sum of those is strictly less than the 128 - # bits of the intermediate result. + # using a 128-bit intermediate works here because the largest type + # this instruction can convert from has 53 significand bits, and + # the largest type this instruction can convert to has 64 bits, + # and the sum of those is strictly less than the 128 bits of the + # intermediate result. limit <- bfp_CONVERT_FROM_UI128([1] * 128) if IsInf(rnd) | IsNaN(rnd) then result <- [0] * 64 @@ -692,10 +693,11 @@ Special Registers altered: result <- si64_CONVERT_FROM_BFP(range_max) default: # JavaScript semantics # CVM = 6, 7 are illegal instructions - # this works because the largest type we try to convert from has - # 53 significand bits, and the largest type we try to convert to - # has 64 bits, and the sum of those is strictly less than the 128 - # bits of the intermediate result. + # using a 128-bit intermediate works here because the largest type + # this instruction can convert from has 53 significand bits, and + # the largest type this instruction can convert to has 64 bits, + # and the sum of those is strictly less than the 128 bits of the + # intermediate result. limit <- bfp_CONVERT_FROM_UI128([1] * 128) if IsInf(rnd) | IsNaN(rnd) then result <- [0] * 64 -- 2.30.2