Skip to content

Conversation

grooverdan
Copy link

my_isinf(square) || my_isnan(square) -> !my_isfinite(square)

my_isfinite is a single function call and may by optimised more than two function calls. The logic is equivalent as finite, infinite and nan are the only states.

my_isinf(square) || my_isnan(square) -> !my_isfinite(square)

Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
@grooverdan
Copy link
Author

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@grooverdan grooverdan changed the title Use logic to change multiple checks to a single check change (isinf || isnan) to !isfinite Dec 1, 2016
@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=84062 for updates.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants