lkml.org 
[lkml]   [2022]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectcompress
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



\
 
 \ /
  Last update: 2022-05-13 01:53    [W:0.037 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site