Click here to Skip to main content
13,091,145 members (66,227 online)
Click here to Skip to main content

Tagged as


Posted 26 Jan 2013

Performance was not as expected

, 26 Jan 2013
Since the compiler does far less optimization in debug mode, you should really compare release version.By the way, is n a signed or an unsigned number? At first, I think that n is signed and this is the reason for the extra instructions for the division (sign extension and substraction). If...



Compare Revision Minor Date Status Editor
4 - publicly available No 26-Jan-13 16:21 Available Philippe Mori
Updates in content. 518 changes had been made.
3 No 26-Jan-13 16:00 Available Philippe Mori
Updates in content. 1111 changes had been made.
2 No 26-Jan-13 8:31 Available Philippe Mori
Updates in content. 22 changes had been made.
1 No 26-Jan-13 8:29 Available Philippe Mori


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Philippe Mori
Software Developer (Senior)
Canada Canada
Programmer at Maid LABS from 2003 (

Programmer-Analyst at Viasat Geo Technoligies from 1995 to 2002 (

I have studied at École Polytechnique de Montréal in computer engineering.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170813.1 | Last Updated 26 Jan 2013
Article Copyright 2013 by Philippe Mori
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid