jsoftware / jsource

J engine source mirror
Other
650 stars 90 forks source link

2 ^. int and 2 ^ int without logs #91

Open HenryHRich opened 2 years ago

moon-chilled commented 1 year ago

How do you propose to implement 2 ^. int more efficiently than for a float?

moon-chilled commented 1 year ago

any nonintegral float can be turned into an integer by multiplying by an easy-to-discover integer power of 2, so I think the distinction should be irrelevant for ^.

HenryHRich commented 1 year ago

I meant, for cases where the result is an integer.

hhr

On Sat, Feb 18, 2023, 8:06 AM moon-chilled @.***> wrote:

any nonintegral float can be turned into an integer by multiplying by a power of 2, so I think the distinction should be irrelevant for ^.

— Reply to this email directly, view it on GitHub https://github.com/jsoftware/jsource/issues/91#issuecomment-1435665994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKVAJ4XLIGKJYKLNW6LFYDWYDCNVANCNFSM5EPVFLFA . You are receiving this because you authored the thread.Message ID: @.***>