| Summary: | Justify log2 addition as helper for pseudo-code | ||
|---|---|---|---|
| Product: | Libre-SOC's first SoC | Reporter: | Jacob Lifshay <programmerjake> |
| Component: | Specification | Assignee: | Luke Kenneth Casson Leighton <lkcl> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | enhancement | CC: | libre-soc-isa |
| Priority: | --- | ||
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| NLnet milestone: | --- | total budget (EUR) for completion of task and all subtasks: | 0 |
| budget (EUR) for this task, excluding subtasks' budget: | 0 | parent task for budget allocation: | |
| child tasks for budget allocation: | The table of payments (in EUR) for this task; TOML format: | ||
|
Description
Jacob Lifshay
2022-01-18 07:59:24 GMT
Well, log2 is already used in the OpenPower ISA v3.1 specification, in the dcbz instruction's pseudo-code (ignore messy character set, I'm too lazy to fix it rn): if RA = 0 then b 0 else b (RA) EA b + (RB) n block size (bytes) m log2(n) ea EA0:63-m || m0 MEM(ea, n) n0x00 (In reply to Jacob Lifshay from comment #1) > Well, log2 is already used in the OpenPower ISA v3.1 specification, in the > dcbz instruction's pseudo-code (ignore messy character set, I'm too lazy to ahh, niiice, good find. then that easily justifies using it, in fact it should be raised as a bug with the OPF ISA WG that the function is "not defined" in Section 1.3.4 (and must be added) |