For those interessted, here are my results. (Division took: is in milliseconds)(yes,

it was 1.000.000.000 calculations

This does not really fit my problem. I will only do about 50 ~ 100 calculations,

so there is no need to optimize.

JAVA (did this one three times

value: 100.0

factor: 3.14

loops: 1000000000

Division took: 9126 result: 31.84713375796178

Multiplication took: 6263 result: 31.84713375796178

value: 100.0

factor: 3.14

loops: 1000000000

Division took: 9630 result: 31.84713375796178

Multiplication took: 6627 result: 31.84713375796178

value: 100.0

factor: 3.14

loops: 1000000000

Division took: 8925 result: 31.84713375796178

Multiplication took: 6227 result: 31.84713375796178

C++ (build with gcc 3.4.3 no optimization)

jim@Yoper ~/prog/test1 $ ./division -l 1000000000 -f 3.141

value: 100

factor: 3.141

loops: 1000000000

Division took: 10624 result: 31.837

Multiplication took: 6530 result: 31.837

C++ (Optimized with -O3)

jim@Yoper ~/prog/test1 $ ./divisionO3 -l 1000000000 -f 3.141

value: 100

factor: 3.141

loops: 1000000000

Division took: 1025 result: 31.837

Multiplication took: 1017 result: 31.837