Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit92247b8

Browse files
forkiKevinRansom
authored andcommitted
Reduce comparisons for GenericEqualityERFast (dotnet#4492)
1 parent047d675 commit92247b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/fsharp/FSharp.Core/prim-types.fs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,15 +1576,15 @@ namespace Microsoft.FSharp.Core
15761576
when 'T: nativeint=(#"ceq" x y: bool #)
15771577
when 'T: unativeint=(#"ceq" x y: bool #)
15781578
when 'T: float=
1579-
ifnot(#"ceq" x x: bool #)&&not(#"ceq" y y: bool #)then
1579+
if(#"ceq" x y: bool #)then
15801580
true
15811581
else
1582-
(#"ceq" x y: bool #)
1582+
not(#"ceq" x x: bool #)&&not(#"ceq" y y: bool #)
15831583
when 'T: float32=
1584-
ifnot(#"ceq" x x: bool #)&&not(#"ceq" y y: bool #)then
1584+
if(#"ceq" x y: bool #)then
15851585
true
15861586
else
1587-
(#"ceq" x y: bool #)
1587+
not(#"ceq" x x: bool #)&&not(#"ceq" y y: bool #)
15881588
when 'T: char=(#"ceq" x y: bool #)
15891589
when 'T: string= System.String.Equals((#"" x: string #),(#"" y: string #))
15901590
when 'T: decimal= System.Decimal.op_Equality((#"" x:decimal #),(#"" y:decimal #))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp