From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA02370; Tue, 3 Jul 2001 20:06:44 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA02361 for ; Tue, 3 Jul 2001 20:06:43 +0200 (MET DST) Received: from psismtp1.psi.airtel.es (back.airtel.net [212.73.32.158]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f63I6gj01360 for ; Tue, 3 Jul 2001 20:06:42 +0200 (MET DST) Received: from airtel.net ([10.101.250.18]) by psismtp1.psi.airtel.es (ESMTP service) with ESMTP id GFWSX001.MAS for ; Tue, 3 Jul 2001 20:05:24 +0200 From: To: caml-list@inria.fr Message-ID: <23ae62237bc3.237bc323ae62@airtel.net> Date: Tue, 03 Jul 2001 20:05:24 +0200 X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: es Subject: [Caml-list] Using 16 bits integers X-Accept-Language: es Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I'm just new to OCaml. I'm writing a program wich uses a lot of 16 bits operations, and writes them to a buffer. For writing into the buffer, it is needed for the data to be in 16 bits, not in 32 bits. Exactly, the program is like a sound synthesizer, so data cannot be send to sound card in 32 bits. My problem with OCaml is: how can I manage 16 bits data, and make operations with it? I had not seen any type in Ocaml with 16bits lenght (int is 32 bits in my machine). This will frustate my project if I do not find a solution, so I will use C if there is no other solution... but I would not like to do if I can avoid it, because I like very much Ocaml. I'm hopping your answers. Thanks. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr