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

[cs] -D fast-cast vs Std.int(a / b) - no optimization #6114

Closed
nadako opened this issue Mar 20, 2017 · 0 comments · Fixed by #11551
Closed

[cs] -D fast-cast vs Std.int(a / b) - no optimization #6114

nadako opened this issue Mar 20, 2017 · 0 comments · Fixed by #11551
Assignees
Labels
platform-cs Everything related to c#
Milestone

Comments

@nadako
Copy link
Member

nadako commented Mar 20, 2017

class Main {
    static function main() {
        var a = 3;
        var b = 2;
        var c = Std.int(a / b);
    }
}

without -D fast-cast:

int a = 3;
int b = 2;
int c = ( a / b );

with -D fast-cast:

int a = 3;
int b = 2;
int c = ((int) (((double) (( ((double) (a) ) / b )) )) );
@nadako nadako added the platform-cs Everything related to c# label Mar 20, 2017
@Simn Simn added this to the Backlog milestone Apr 18, 2018
@Simn Simn modified the milestones: Backlog, Later Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-cs Everything related to c#
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants