Re: Unsigned integers?

From: John Max Skaller (skaller@maxtal.com.au)
Date: Thu Mar 23 2000 - 13:55:30 MET

  • Next message: Sven LUTHER: "Re: Syntax for label, NEW PROPOSAL"

    Xavier Leroy wrote:
    >
    > > I have some code for processing ISO-10646 characters and UTF-8,
    > > which uses caml integers. ISO-10646 has 2^31 code points, which
    > > can be covered by caml integers on a 32bit machine. Using an
    > > unboxed type is mandatory for performance.
    >
    > OCaml 3.00 includes three new library modules, Int32, Int64 and
    > Nativeint, implementing (boxed) 32-bit, 64-bit and platform-native
    > integers, resepctively. (Platform-native integers are 32 bits on 32
    > bit processors and 64 bits on 64 bit processors). The native-code
    > compiler was modified to inline the operations on those types,
    > including elimination of unnecessary boxing/unboxing, like for floats.
    > That may or may not be efficient enough for your application.

            This is probably enough, provided I can write
    conversions to/from ints.

    -- 
    John (Max) Skaller, mailto:skaller@maxtal.com.au
    10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
    checkout Vyper http://Vyper.sourceforge.net
    download Interscript http://Interscript.sourceforge.net
    



    This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 14:01:33 MET