lkml.org 
[lkml]   [2013]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] staging: ozwpan: Fix build warning.
From
Why do not use div_u64() ?

[quote]unsigned 64bit divide with 32bit divisor

This is the most common 64bit divide and should be used if possible,
as many 32bit archs can optimize this variant better than a full 64bit
divide.
[/quote]

> - ep->credit += timespec_to_ns(&delta) / NSEC_PER_MSEC;
> + ep->credit += div64_u64(timespec_to_ns(&delta), NSEC_PER_MSEC);


\
 
 \ /
  Last update: 2013-08-04 20:41    [W:0.052 / U:60.196 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site