Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Int overflow in literals
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Marcin 'Qrczak' Kowalczyk <qrczak@k...>
Subject: Re: [Caml-list] Int overflow in literals
W li¶cie z czw, 30-10-2003, godz. 20:20, Oleg Trott pisze:

> I'm also curious if raising an exception in case of arithmetic overflows
> instead of silently accepting them would have a significant performance
> impact on modern CPUs - few, if anyone, mean to do mod 2^31 
> arithmetic.

Perhaps it should be like array bounds checking: separate functions for
both variants, with + resolving to either depending on -unsafe option?

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners