All of lore.kernel.org
 help / color / mirror / Atom feed
From: "André Coelho" <andrealbergaria@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: compress
Date: Fri, 13 May 2022 00:50:01 +0100	[thread overview]
Message-ID: <64f88438-2cf5-0920-972f-ccf1eb320d07@gmail.com> (raw)

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




                 reply	other threads:[~2022-05-12 23:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64f88438-2cf5-0920-972f-ccf1eb320d07@gmail.com \
    --to=andrealbergaria@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.