Re: [PATCH] ibmaem: Fix 64-bit division on 32-bit platforms

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Darrick J. Wong <djwong@...>
Cc: Andrew Morton <akpm@...>, <mhoffman@...>, <linux-kernel@...>, <lm-sensors@...>
Date: Wednesday, May 14, 2008 - 6:27 pm

On Thu, May 08, 2008 at 09:55:27PM -0700, Darrick J. Wong wrote:

What are you actually trying to do here?

Converting mJ/ns to uJ/s?

Or do you want to convert mJ/ns to Watt in which case you should
multiply "time" with 1000 instead of dividing it through 1000?

In any case you should only need one expensive 64bit division
and you can fold the operation with 1000 into the second division.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ibmaem: Fix 64-bit division on 32-bit platforms, Darrick J. Wong, (Fri May 9, 12:55 am)
Re: [PATCH] ibmaem: Fix 64-bit division on 32-bit platforms, Adrian Bunk, (Wed May 14, 6:27 pm)
Re: [PATCH] ibmaem: Fix 64-bit division on 32-bit platforms, Carlos R. Mafra, (Wed May 14, 7:11 pm)
[PATCH v2] ibmaem: Fix 64-bit division on 32-bit platforms, Darrick J. Wong, (Thu May 15, 5:18 pm)