Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a more efficient branch-less version #432

Open
todo bot opened this issue Nov 12, 2021 · 0 comments
Open

Write a more efficient branch-less version #432

todo bot opened this issue Nov 12, 2021 · 0 comments
Assignees

Comments

@todo
Copy link

todo bot commented Nov 12, 2021

Pyjion/src/pyjion/pycomp.cpp

Lines 2599 to 2604 in 20e3b04

// TODO : Write a more efficient branch-less version
Label is_positive = emit_define_label();
m_il.dup();
m_il.ld_r8(0.0);
emit_branch(BranchGreaterThanEqual, is_positive);
m_il.neg();


This issue was generated by todo based on a TODO comment in 20e3b04 when #427 was merged. cc @tonybaloney.
@todo todo bot added the todo 🗒️ label Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant