From 94daae6864769ffc5fff037dd18b2e8062ee672d Mon Sep 17 00:00:00 2001 From: Curtis Dunham Date: Tue, 11 Mar 2014 09:50:02 -0500 Subject: [PATCH] arm: remove dead code fplib mul64x64 --- src/arch/arm/insts/fplib.cc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/arch/arm/insts/fplib.cc b/src/arch/arm/insts/fplib.cc index e6528358a..98410dd38 100644 --- a/src/arch/arm/insts/fplib.cc +++ b/src/arch/arm/insts/fplib.cc @@ -155,23 +155,6 @@ void mul64x32(uint64_t *x0, uint64_t *x1, uint64_t a, uint32_t b) *x1 = t1 >> 32; } -static inline void -mul64x64(uint64_t *x0, uint64_t *x1, uint64_t a, uint64_t b) -{ - uint64_t a0 = (uint32_t)a; - uint64_t a1 = a >> 32; - uint64_t b0 = (uint32_t)b; - uint64_t b1 = b >> 32; - uint64_t t1 = (a0 * b0 >> 32) + a1 * b0; - uint64_t t2 = a0 * b1; - uint64_t x = ((uint64_t)(uint32_t)t1 + (uint32_t)t2) >> 32; - x += t1 >> 32; - x += t2 >> 32; - x += a1 * b1; - *x0 = a * b; - *x1 = x; -} - static inline void add128(uint64_t *x0, uint64_t *x1, uint64_t a0, uint64_t a1, uint64_t b0, uint64_t b1) -- 2.30.2