public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 64-bit modulus operation in a 32-bit kernel
@ 2012-04-24 17:50 Alan Stern
  2012-04-24 18:20 ` Takashi Iwai
  2012-04-24 19:15 ` Andreas Schwab
  0 siblings, 2 replies; 4+ messages in thread
From: Alan Stern @ 2012-04-24 17:50 UTC (permalink / raw)
  To: Kernel development list

I need to compute the remainder when a 64-bit quantity is divided by a 
small value (126 in this case).  The % operator doesn't work in an 
x86/32 kernel.  What's the Right Way to do it?

Alan Stern


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-24 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-24 17:50 64-bit modulus operation in a 32-bit kernel Alan Stern
2012-04-24 18:20 ` Takashi Iwai
2012-04-24 18:57   ` Alan Stern
2012-04-24 19:15 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox