目的与范围
目的与范围
本单元定义编码选择器完成解析后使用的语义舍入模式命名空间,以及通用执行控制记录。
它将数学舍入模式与标量 FRM、固定转换覆盖项、束 RMode 和公共 API 选择器编码明确区分。
PTO-ARCH-DATA-TYPES-ROUNDING下面直接显示完整的 ASL 所有者。
// PTO-UNIT: {"id":"PTO-ARCH-DATA-TYPES-ROUNDING","surface":"arch","classification":["data-types","rounding"],"depends_on":["PTO-ARCH-DATA-TYPES-FLOATING-POINT"]}// Semantic rounding modes are independent of every encoded selector// namespace. Scalar FRM, fixed conversion overrides, bundle RMode, and public// API controls must resolve into this type explicitly.type NumericRoundingMode of enumeration { NumericRound_RNE, NumericRound_RTM, NumericRound_RTP, NumericRound_RTZ, NumericRound_RNA, NumericRound_RTO, NumericRound_RHB};
type NumericExecutionControl of record { rounding_mode: NumericRoundingMode, saturating: boolean};
// Bit-exact value classes are format properties. They do not select an// operation result, exception flag, target profile, or arithmetic algorithm.pure func DefaultNumericExecutionControl() => NumericExecutionControlbegin return NumericExecutionControl { rounding_mode = NumericRound_RNE, saturating = FALSE };end;
// Selects only a bounded set of accepted negative applicability rules. This// is not a complete target-profile selector: absence of a rejection does not// claim target support or select numeric result semantics.type NumericApplicabilityRuleSet of enumeration { NumericApplicabilityRules_None, NumericApplicabilityRules_A2A3MxRejection};
本单元定义编码选择器完成解析后使用的语义舍入模式命名空间,以及通用执行控制记录。
它将数学舍入模式与标量 FRM、固定转换覆盖项、束 RMode 和公共 API 选择器编码明确区分。
NumericRoundingMode 包含 RNE、RTM、RTP、RTZ、RNA、RTO 和 RHB 七种语义模式。NumericExecutionControl 将 NumericRoundingMode 与 saturating 布尔值组合为一条记录。NumericApplicabilityRuleSet 表示没有额外拒绝规则,或采用有界的 A2A3MxRejection 规则集。DefaultNumericExecutionControl 选择 NumericRound_RNE,并设置 saturating = FALSE。
每个编码选择器命名空间都必须显式解析为 NumericRoundingMode;枚举位置不是隐含的线编码。
适用性枚举只选择一组有界的排除规则。未被拒绝并不表示目标一定支持,也不选择数值结果语义。
这些类型不定义具体算术操作如何舍入某个值;精确结果算法仍由操作或配置归属单元定义。
A2A3MxRejection 是命名的面向目标规则集,不是可以在其归属范围之外套用的可移植 PTO 行为。
束 RMode 编码先由其归属单元解码,随后才会成为例如 NumericRound_RTZ;本页不把两者的数值编码直接等同。
需要架构默认值的调用方可以调用 DefaultNumericExecutionControl,无需在本地重复 RNE 和非饱和默认值。
正文来自 owning ASL。拖拽或按钮只临时改变当前页面显示顺序。
No NDF clause is attached to this unit.
8 matching entries
PTO-AVS-ARCH-DATA-TYPES-ROUNDING-STATIC-001tests/asl/arch/data-types/rounding/arch-static-rounding-contract-001.asl2d208aa3ae8d04bd6b620be5c5d72d9ea5f5799ea27f0fd8f288d6755dd96d29PTO-EVIDENCE-RELEASE-TRACEABILITYPTO-EVIDENCE-RELEASE-TRACEABILITYspec/evidence/release-traceability-readiness.jsonc7327021d39dc67ac5564bc55073b3870a397d79ac8d9648284d56e33bc14a3ePTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSUREPTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSUREspec/evidence/instruction-contract-closure.json3ef2bb62421c79dff8fa77a1c7983923b523244b8090812883ef81286ca8106aPTO-EVIDENCE-ARCHITECTURE-READINESSPTO-EVIDENCE-ARCHITECTURE-READINESSspec/evidence/architecture-readiness.json4b0b85199101251bea744e0f3591cc31906909dc80d5ab651c417a936036a004PTO-EVIDENCE-RELEASE-GATE-READINESSPTO-EVIDENCE-RELEASE-GATE-READINESSspec/evidence/release-gate-readiness.jsona0f4d2b6920c08981ea55fd8ef820708a40d4feb5402c5150e8e9ab532d84ce0PTO-EVIDENCE-RELEASE-MANIFESTPTO-EVIDENCE-RELEASE-MANIFESTspec/release-manifest.json1a64c109ed7a90351c41e2a418b3c0ebaf8ad975838986d2101385186b85c0d8Loading ADR-0039…
ADR-0039docs/status/decisions/0039-numeric-rounding-selector-ownership.md7e1029fad878621047803e74838cde868d8b172412d62ad21ba5da7be02f8066Loading ADR-0047…
ADR-0047docs/status/decisions/0047-numeric-rounding-semantics.md5a7a0f1ddc09885943d3a337b989e6a2b02feba246a7427d5719cb4ba61cd1c8{
"classification": [
"data-types",
"rounding"
],
"documentation": "docs/arch/data-types/rounding.md",
"id": "PTO-ARCH-DATA-TYPES-ROUNDING",
"mnemonic": null,
"readiness_subjects": [
"ADR-0039",
"ADR-0047"
],
"semantic_tests": [],
"source": "asl/arch/data-types/rounding.asl",
"surface": "arch",
"tests": [
"PTO-AVS-ARCH-DATA-TYPES-ROUNDING-STATIC-001"
]
}0.58.5 · 候选发布7dc8b7e5b121d2b2499a2273bebff29e2cd868127914ae826137d9581ca7703b578532e9711d46675a2f45823700faaf6317adffd2b7a1d7121e7307028dc6fea604bb4e9134363b2d80748cb447c0dd58a23108asl/arch/data-types/rounding.asl