All of lore.kernel.org
 help / color / mirror / Atom feed
* compress
@ 2022-05-12 23:50 André Coelho
  0 siblings, 0 replies; only message in thread
From: André Coelho @ 2022-05-12 23:50 UTC (permalink / raw)
  To: linux-kernel

Hey,


since all numbers are bits, for example a int is 32 bits, can't we use a 
math function to convert from bigger numbers to small numbers?

for example

     int a= 0xaabbccdd


f(a) = 0xff


we could only store 0xff

and for obtaining the a again, just use the inverse function...the 
function has to be bijective though

f-a(0xff) = 0xaabbccdd


thanks


later


andre coelho




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-12 23:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 23:50 compress André Coelho

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.