Skip to content

Commit 1b232e9

Browse files
[Python] Remove unused functions in FloatingPoint.swift.gyb
Removed: * getExponentBitCount(bits) * getSignalingNanBitPattern(bits) * llvmIntrinsicSuffix(bits)
1 parent ba8df10 commit 1b232e9

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

stdlib/public/core/FloatingPoint.swift.gyb

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ def cFuncSuffix(bits):
6060
if bits == 80:
6161
return 'l'
6262

63-
def llvmIntrinsicSuffix(bits):
64-
if bits == 32:
65-
return 'f32'
66-
if bits == 64:
67-
return 'f64'
68-
if bits == 80:
69-
return 'f80'
70-
7163
def getInfBitPattern(bits):
7264
if bits == 32:
7365
return '0x7f800000'
@@ -82,27 +74,13 @@ def getQuietNaNBitPattern(bits):
8274
return '0x7ff8000000000000'
8375
return 'error'
8476

85-
def getSignalingNanBitPattern(bits):
86-
if bits == 32:
87-
return '0x7fa00000'
88-
if bits == 64:
89-
return '0x7ff4000000000000'
90-
return 'error'
91-
9277
def getMinNormalBitPattern(bits):
9378
if bits == 32:
9479
return '0x00800000'
9580
if bits == 64:
9681
return '0x0010000000000000'
9782
return 'error'
9883

99-
def getExponentBitCount(bits):
100-
if bits == 32:
101-
return '8'
102-
if bits == 64:
103-
return '11'
104-
return 'error'
105-
10684
def getSignificantBitCount(bits):
10785
if bits == 32:
10886
return '23'

0 commit comments

Comments
 (0)