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

Commita44a975

Browse files
committed
FX_NO_TRUNCATE --- deadcode removal
1 parent59db4f3 commita44a975

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5178,13 +5178,8 @@ namespace Microsoft.FSharp.Core
51785178
[<NoDynamicInvocation>]
51795179
let inlinetruncateImpl(x:^T):^T=
51805180
(^T:(static memberTruncate:^T->^T)(x))
5181-
#if FX_NO_TRUNCATE
5182-
when^T: float=0.0
5183-
when^T: float32=0.0
5184-
#else
51855181
when^T: float= System.Math.Truncate(retype x: float)
51865182
when^T: float32= System.Math.Truncate(toFloat(retype x))|> toFloat32
5187-
#endif
51885183

51895184
[<NoDynamicInvocation>]
51905185
let inlineroundImpl(x:^T):^T=

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,13 +2348,11 @@ namespace Microsoft.FSharp.Core
23482348
[<CompiledName("Tanh")>]
23492349
val inline tanh:value:^T->^T when ^T:(static member Tanh:^T->^T)and default ^T:float
23502350

2351-
#if!FX_NO_TRUNCATE
23522351
///<summary>Overloaded truncate operator.</summary>
23532352
///<param name="value">The input value.</param>
23542353
///<returns>The truncated value.</returns>
23552354
[<CompiledName("Truncate")>]
23562355
val inline truncate:value:^T->^T when ^T:(static member Truncate:^T->^T)and default ^T:float
2357-
#endif
23582356

23592357
///<summary>Overloaded power operator.</summary>
23602358
///<param name="x">The input base.</param>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp