[Libre-soc-isa] [Bug 1192] New: dsrd / dsld need "add" option for knuth algorithm d
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Wed Oct 18 12:17:27 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1192
Bug ID: 1192
Summary: dsrd / dsld need "add" option for knuth algorithm d
Product: Libre-SOC's first SoC
Version: unspecified
Hardware: PC
OS: Linux
Status: CONFIRMED
Severity: enhancement
Priority: ---
Component: Specification
Assignee: lkcl at lkcl.net
Reporter: shriya.sharma at redsemiconductor.com
CC: libre-soc-isa at lists.libre-soc.org
NLnet milestone: ---
in knuth algorithm d there is a shift-and-add.
this has been discussed before and is worth considering
--
for (int i = 0; i <= n; i++)
{
uint64_t result = (((uint64_t)phi[i] << 32) | plo[i]) + carry;
uint32_t result_high = result >> 32;
if (carry <= 1)
result_high++;
carry = result_high;
un[i + j] = (uint32_t)result;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libre-SOC-ISA
mailing list