--- Quote Start ---
Thank you mmTsuchi. I apply your code and I don't see the difference. Always the same number of used macrocells than my code.
--- Quote End ---
If you look in the RTL viewer you see a difference as mmTsuchi mentions, but the fitter does an awfully good job. I once explored alternative ways in determining the leading bit set to one in a std_logic_vector. The two methods I tried produced totally different RTL views, one with a lot of small muxes and the other with only a few but larger muxes. But they produced identical results in the Technology Map Viewer.