Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/tests/nofib/real/compress/Defaults.hs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


{-
 - Defaults.hs
 -
 - Contains the tuning values for compress and uncompress
 -
 -}

module Defaults
where

-- Maximum number of table entries (probably = 2^code_bits)

max_entries :: Int
max_entries = 2 ^ code_bits

-- First code value available

first_code :: Int
first_code = 256

-- Number of bits per output character

ascii_bits :: Int
ascii_bits = 8

-- Number of bits to represent code by

code_bits :: Int
code_bits = 12

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.