Browse thread
Pervasives.{min,max} not specialized to floats by ocamlopt
-
Will M Farr
-
Olivier Andrieu
- Will M Farr
- Shawn
-
Olivier Andrieu
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-08-18 (15:37) |
From: | Will M Farr <farr@M...> |
Subject: | Re: [Caml-list] Pervasives.{min, max} not specialized to floats by ocamlopt |
On Aug 18, 2006, at 11:34 AM, Olivier Andrieu wrote: > Indeed. That's because min and max are not primitives provided by the > runtime library but regular caml functions from pervasives.ml : > ,---- > | let min x y = if x <= y then x else y > | let max x y = if x >= y then x else y > `---- In this case, it seems strange that they weren't inlined---when I defined my own min and max functions, *they* were inlined. Could it be because I was working inside a functor, or am I mistaken in my belief that ocaml does cross-module inlining? Will