Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocaml, int32/64, bigarray and unsigned values ...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ken Rose <kenrose@t...>
Subject: Re: [Caml-list] ocaml, int32/64, bigarray and unsigned values ...
Sven Luther wrote:

> Yeah, bit shifting should be ok, since the sign is ignored for those.

But be careful about right shifts, which are different signed than 
unsigned.  Signed repeats the sign bit, while unsigned shifts in zeroes. 
  If you mask afterwards, it should be fine.

  - ken