From: bugzilla-daemon Date: Mon, 13 Apr 2020 17:23:10 +0000 (+0000) Subject: [libre-riscv-dev] [Bug 208] implement CORDIC in a general way sufficient to do transc... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b22ad8c4887ab0c7ba24d72a3b399f77df1798a3;p=libre-riscv-dev.git [libre-riscv-dev] [Bug 208] implement CORDIC in a general way sufficient to do transcendentals --- diff --git a/15/d502f74e5ae7512a9760c438e0fdf77f88f787 b/15/d502f74e5ae7512a9760c438e0fdf77f88f787 new file mode 100644 index 0000000..adc080d --- /dev/null +++ b/15/d502f74e5ae7512a9760c438e0fdf77f88f787 @@ -0,0 +1,127 @@ +Return-path: +Envelope-to: publicinbox@libre-riscv.org +Delivery-date: Mon, 13 Apr 2020 18:23:12 +0100 +Received: from localhost ([::1] helo=libre-riscv.org) + by libre-soc.org with esmtp (Exim 4.89) + (envelope-from ) + id 1jO2nf-0002R3-N2; Mon, 13 Apr 2020 18:23:11 +0100 +Received: from localhost ([127.0.0.1] helo=bugs.libre-soc.org) + by libre-soc.org with esmtp (Exim 4.89) + (envelope-from ) id 1jO2ne-0002Qt-0n + for libre-riscv-dev@lists.libre-riscv.org; Mon, 13 Apr 2020 18:23:10 +0100 +From: bugzilla-daemon@libre-soc.org +To: libre-riscv-dev@lists.libre-riscv.org +Date: Mon, 13 Apr 2020 17:23:10 +0000 +X-Bugzilla-Reason: CC +X-Bugzilla-Type: changed +X-Bugzilla-Watch-Reason: None +X-Bugzilla-Product: Libre-SOC's first SoC +X-Bugzilla-Component: ALU (including IEEE754 16/32/64-bit FPU) +X-Bugzilla-Version: unspecified +X-Bugzilla-Keywords: +X-Bugzilla-Severity: enhancement +X-Bugzilla-Who: lkcl@lkcl.net +X-Bugzilla-Status: CONFIRMED +X-Bugzilla-Resolution: +X-Bugzilla-Priority: --- +X-Bugzilla-Assigned-To: mtnolan2640@gmail.com +X-Bugzilla-Flags: +X-Bugzilla-Changed-Fields: +Message-ID: +In-Reply-To: +References: +X-Bugzilla-URL: https://bugs.libre-soc.org/ +Auto-Submitted: auto-generated +MIME-Version: 1.0 +Subject: [libre-riscv-dev] [Bug 208] implement CORDIC in a general way + sufficient to do transcendentals +X-BeenThere: libre-riscv-dev@lists.libre-riscv.org +X-Mailman-Version: 2.1.23 +Precedence: list +List-Id: Libre-RISCV General Development + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +Reply-To: Libre-RISCV General Development + +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: base64 +Errors-To: libre-riscv-dev-bounces@lists.libre-riscv.org +Sender: "libre-riscv-dev" + +aHR0cHM6Ly9idWdzLmxpYnJlLXNvYy5vcmcvc2hvd19idWcuY2dpP2lkPTIwOAoKLS0tIENvbW1l +bnQgIzQgZnJvbSBMdWtlIEtlbm5ldGggQ2Fzc29uIExlaWdodG9uIDxsa2NsQGxrY2wubmV0PiAt +LS0KKEluIHJlcGx5IHRvIE1pY2hhZWwgTm9sYW4gZnJvbSBjb21tZW50ICMzKQo+IEkgd2FzIGFi +bGUgdG8gdHJhbnNsYXRlIHRoZSBsaW5rZWQgbXloZGwgY29kZSB0byBubWlnZW4gYW5kIGltcGxl +bWVudCBib3RoIGEKPiBzdGF0ZSBtYWNoaW5lIGJhc2VkIGFuZCBwaXBlbGluZWQgY29yZGljIGhl +cmU6Cj4gaHR0cHM6Ly9naXQubGlicmUtc29jLm9yZy8/cD1pZWVlNzU0ZnB1LmdpdDthPXRyZWU7 +Zj1zcmMvaWVlZTc1NC9jb3JkaWM7Cj4gaD0zZjA2OTAwYmFhNDI2NTE0MTBkNjYxNzM5ZmI2MTZl +NGIzMDIwYzUyOwo+IGhiPTc3ZjE1MGNmZjQ0MGJlZDAyNWUyNDg3YjZmMGZjZGE5ZjUyOTI5MGIK +CmNvb2whICB3ZWxsIHRoYXQgd2FzIGVhc3kgOikKCj4gWW91IGNhbiBjb25maWd1cmUgdGhlIHdp +ZHRoLCBhcyB3ZWxsIGFzIHRoZSB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