Re: Unsigned integers?

From: Xavier Leroy (Xavier.Leroy@inria.fr)
Date: Fri Mar 24 2000 - 16:59:03 MET

  • Next message: David McClain: "Fw: OCaml App (NML) Announce"

    > By the way, is there any plan to do for int32 the same kind of
    > optimizations as are done for floats (no boxing/unboxing in the middle
    > of a computation)? Already done?

    Already done! For int32, nativeint, and even for int64 on 64-bit
    processors.

    The only difference between boxed integers and floats, as far as
    boxing elimination in ocamlopt goes, is that there is a hack to unbox
    floats in arrays, but no corresponding hack for arrays of boxed
    integers. As Jacques said, the new Bigarray module does provide
    arrays of unboxed int32 / nativeint / int64, although of a different
    type than the standard Caml arrays.

    - Xavier Leroy



    This archive was generated by hypermail 2b29 : Fri Mar 24 2000 - 17:11:04 MET