src/nint128/nint128_types

Source   Edit  

Types

Int128 = object
  when system.cpuEndian == littleEndian:
      lo*: uint64
      hi*: int64

  else:
      hi*: int64
      lo*: uint64

  
Source   Edit  
UInt128 = object
  when system.cpuEndian == littleEndian:
      lo*, hi*: uint64

  else:
      hi*, lo*: uint64

  
Source   Edit  

Procs

func high(x: typedesc[Int128]): Int128 {.inline.}
170141183460469231731687303715884105727 Source   Edit  
func high(x: typedesc[UInt128]): UInt128 {.inline.}
340282366920938463463374607431768211455 Source   Edit  
func low(x: typedesc[Int128]): Int128 {.inline.}
-170141183460469231731687303715884105728 Source   Edit  
func low(x: typedesc[UInt128]): UInt128 {.inline.}
0 Source   Edit  
func one[T: SomeInt128](x: typedesc[T]): T {.inline.}
Source   Edit  
func ten[T: SomeInt128](x: typedesc[T]): T {.inline.}
Source   Edit  
func zero[T: SomeInt128](x: typedesc[T]): T {.inline.}
Source   Edit