Jump to content

Hi,

 

I am trying to calculate the pow()-function in assembler.

The final goal is to make a gamma correction on a grayscale image.

 

So I need this formula in assembler:

 

newPixel = ((oldPixel/255)^gammaFactor)*255

 

gammaFactor is (and must be) a real number.

 

I'm thankful for every idea!

Greetings from Germany!

CPU: AMD FX-8350 @4.2GHz cooled by Corsair H100 | Mainboard: ASUS ROG Crosshair V Formula-Z | GPU: XFX HD7970 DD 3GB | RAM: 16GB G.Skill RipjawsX | Case: ANTEC P280 windowed | PSU: beQuiet! 650W DarkPower Pro

Now @ University in Munich: Games Engineering!!!!

Link to comment
https://linustechtips.com/topic/297398-pow-function-arm-assembler/
Share on other sites

Link to post
Share on other sites

The problem is, there is now POW command in ARM assembler (at least none that I know of)

CPU: AMD FX-8350 @4.2GHz cooled by Corsair H100 | Mainboard: ASUS ROG Crosshair V Formula-Z | GPU: XFX HD7970 DD 3GB | RAM: 16GB G.Skill RipjawsX | Case: ANTEC P280 windowed | PSU: beQuiet! 650W DarkPower Pro

Now @ University in Munich: Games Engineering!!!!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×