[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+ZOyagnA=NRjRH4qWw8FgOTBr1uAvDvK1Pk8MAw8ysQdgdfPA@mail.gmail.com>
Date: Wed, 26 Sep 2018 15:12:45 +0800
From: Zong Li <zongbox@...il.com>
To: schwab@...e.de
Cc: hch@...radead.org, Palmer Dabbelt <palmer@...ive.com>,
aou@...s.berkeley.edu, Vincent Chen <vincentc@...estech.com>,
Zong Li <zong@...estech.com>, linux-riscv@...ts.infradead.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines
Andreas Schwab <schwab@...e.de> 於 2018年9月25日 週二 下午3:20寫道:
>
> On Sep 25 2018, Zong Li <zongbox@...il.com> wrote:
>
> > The RV32 need the umoddi3 to do modulo when the operands are long long
> > type, like other libraries implementation such as ucmpdi2, lshrdi3 and
> > so on. I encounter the undefined reference 'umoddi3' when I use the in
> > house dma driver, although it is in house driver, but I think that
> > umoddi3 is a common function for RV32.
>
> You probably should use the macros from <asm/div64.h> instead.
Hi Andreas,
This doesn't work for me, the divisor of my case is also long long type.
Powered by blists - more mailing lists