File: Number.swift

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (22 lines) | stat: -rw-r--r-- 1,130 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
struct NumberTestWorldExportsImpl: NumberTestWorldExports {
    static func roundtripBool(v: Bool) -> Bool { v }
    static func roundtripU8(v: UInt8) -> UInt8 { v }
    static func roundtripU16(v: UInt16) -> UInt16 { v }
    static func roundtripU32(v: UInt32) -> UInt32 { v }
    static func roundtripU64(v: UInt64) -> UInt64 { v }
    static func roundtripS8(v: Int8) -> Int8 { v }
    static func roundtripS16(v: Int16) -> Int16 { v }
    static func roundtripS32(v: Int32) -> Int32 { v }
    static func roundtripS64(v: Int64) -> Int64 { v }
    static func roundtripFloat32(v: Float) -> Float { v }
    static func roundtripFloat64(v: Double) -> Double { v }

    static func retptrU8() -> (UInt8, UInt8) { (1, 2) }
    static func retptrU16() -> (UInt16, UInt16) { (1, 2) }
    static func retptrU32() -> (UInt32, UInt32) { (1, 2) }
    static func retptrU64() -> (UInt64, UInt64) { (1, 2) }
    static func retptrS8() -> (Int8, Int8) { (1, -2) }
    static func retptrS16() -> (Int16, Int16) { (1, -2) }
    static func retptrS32() -> (Int32, Int32) { (1, -2) }
    static func retptrS64() -> (Int64, Int64) { (1, -2) }
}