S
Screamin Lord Byron
Hi,
The title might be a little confusing (or even completely wrong), so
I'll try to explain exactly what I mean.
For example, suppose you must do lots of power calculations and you can
guarantee that the x argument to Math.pow(double x, double y) will
always be positive or zero and it will never be infinity. In other
words, no special cases, so you don't need the checks that Math.pow()
provides prior to calling the native doPow() function. My question is:
is it somehow possible to call that native function directly?
Where are the implementations of such functions? Google wasn't very
helpful because it wants to teach me how to make my own native
functions. I was looking at JNA, but that's obviously not what I want
either.
If you're interested in the purpose of this it's purely curiosity.
Thanks.
The title might be a little confusing (or even completely wrong), so
I'll try to explain exactly what I mean.
For example, suppose you must do lots of power calculations and you can
guarantee that the x argument to Math.pow(double x, double y) will
always be positive or zero and it will never be infinity. In other
words, no special cases, so you don't need the checks that Math.pow()
provides prior to calling the native doPow() function. My question is:
is it somehow possible to call that native function directly?
Where are the implementations of such functions? Google wasn't very
helpful because it wants to teach me how to make my own native
functions. I was looking at JNA, but that's obviously not what I want
either.
If you're interested in the purpose of this it's purely curiosity.
Thanks.