From a88dc45fdf93eeceb9a2bf9a55f9d4d6cf7e4ece Mon Sep 17 00:00:00 2001 From: bugzilla-daemon Date: Wed, 15 Apr 2020 21:30:33 +0000 Subject: [PATCH] [libre-riscv-dev] [Bug 208] implement CORDIC in a general way sufficient to do transcendentals --- c7/a14f53bc3d06e2c0953e280dc21733de09195c | 125 ++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 c7/a14f53bc3d06e2c0953e280dc21733de09195c diff --git a/c7/a14f53bc3d06e2c0953e280dc21733de09195c b/c7/a14f53bc3d06e2c0953e280dc21733de09195c new file mode 100644 index 0000000..26d5aae --- /dev/null +++ b/c7/a14f53bc3d06e2c0953e280dc21733de09195c @@ -0,0 +1,125 @@ +Return-path: +Envelope-to: publicinbox@libre-riscv.org +Delivery-date: Wed, 15 Apr 2020 22:30:36 +0100 +Received: from localhost ([::1] helo=libre-riscv.org) + by libre-soc.org with esmtp (Exim 4.89) + (envelope-from ) + id 1jOpcB-0000pR-SS; Wed, 15 Apr 2020 22:30:35 +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 1jOpc9-0000pC-7h + for libre-riscv-dev@lists.libre-riscv.org; Wed, 15 Apr 2020 22:30:33 +0100 +From: bugzilla-daemon@libre-soc.org +To: libre-riscv-dev@lists.libre-riscv.org +Date: Wed, 15 Apr 2020 21:30:33 +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 +bnQgIzEzIGZyb20gTHVrZSBLZW5uZXRoIENhc3NvbiBMZWlnaHRvbiA8bGtjbEBsa2NsLm5ldD4g +LS0tCihJbiByZXBseSB0byBNaWNoYWVsIE5vbGFuIGZyb20gY29tbWVudCAjMTEpCj4gKEluIHJl +cGx5IHRvIEx1a2UgS2VubmV0aCBDYXNzb24gTGVpZ2h0b24gZnJvbSBjb21tZW50ICM3KQoKPiA+ +ICogZnJvbSB0aGF0IHBvaW50IG9uIHRyZWF0ZWQgdGhlIG1hbnRpc3NhIGFzIGFuIGludGVnZXIs +ICpjb21wbGV0ZWx5Cj4gPiBpZ25vcmluZyoKPiA+ICAgdGhlIGV4cG9uZW50IHVudGlsCj4gPiAq +IGZpbmFsbHkgYXQgdGhlIGVuZCAicmUtbm9ybWFsaXNpbmciIHRoZSByZXN1bHQuCj4gCj4gQWgg +b2ssIHRoaXMgbWFrZXMgbW9yZSBzZW5zZS4gCgpGUCBpcyBvZGQsIGl0IGNhbiBvbmx5IGJlIGRv +bmUgaW4gZml4ZWRwb2ludC4gIGhvd2V2ZXIgaXQgaXMgYWN0dWFsbHkKcmVsYXRpdmVseSBzdHJh +aWdodGZ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