Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-07-04 14:14:44

helmut.zeisel_at_[hidden] wrote:

> But how do you portable specify the fastest word size?

        You could use C99's


which is the biggest
rather than the fastest. Or you could use


on the basis the compiler can generate much better long
operations than you can hope to do in C.

Another solution is to use


and leave it to the configuration system to pick the best
word size.

        While there is no run-time penalty for using a template,
there's a compile time one. And something much worse:
you'd be delegating a difficult technical decision to a
non-expert. And something even worse than that: third
party libraries might use different types, so you might
end up with multiple representations that can't interoperate.

John (Max) Skaller, mailto:skaller_at_[hidden] 
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
New generation programming language Felix
Literate Programming tool Interscript

Boost list run by bdawes at, gregod at, cpdaniel at, john at