src/cplib/math/int128

  Source   Edit

Types

Int128 {.importcpp: "__int128_t", nodecl.} = object
  Source   Edit

Procs

proc `$`(x: Int128): string {....raises: [], tags: [].}
  Source   Edit
proc `&=`(x: var Int128; y: Int128) {.importcpp: "((#) &= (#))", nodecl,
                                      ...raises: [], tags: [].}
  Source   Edit
proc `&`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `*=`(x: var Int128; y: Int128) {.importcpp: "((#) *= (#))", nodecl,
                                      ...raises: [], tags: [].}
  Source   Edit
proc `*`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `+=`(x: var Int128; y: Int128) {.importcpp: "((#) += (#))", nodecl,
                                      ...raises: [], tags: [].}
  Source   Edit
proc `+`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `-=`(x: var Int128; y: Int128) {.importcpp: "((#) -= (#))", nodecl,
                                      ...raises: [], tags: [].}
  Source   Edit
proc `-`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `-`(x: Int128): Int128 {.importcpp: "-((#))", nodecl, ...raises: [], tags: [].}
  Source   Edit
proc `<<=`(x: var Int128; y: Int128) {.importcpp: "((#) <<= (#))", nodecl,
                                       ...raises: [], tags: [].}
  Source   Edit
proc `<<`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `<=`(x, y: Int128): bool {.importcpp: "((#) <= (#))", nodecl, ...raises: [],
                                tags: [].}
  Source   Edit
proc `<`(x, y: Int128): bool {.importcpp: "((#) < (#))", nodecl, ...raises: [],
                               tags: [].}
  Source   Edit
proc `==`(x, y: Int128): bool {.importcpp: "((#) == (#))", nodecl, ...raises: [],
                                tags: [].}
  Source   Edit
proc `>=`(x, y: Int128): bool {.importcpp: "((#) >= (#))", nodecl, ...raises: [],
                                tags: [].}
  Source   Edit
proc `>>=`(x: var Int128; y: Int128) {.importcpp: "((#) >>= (#))", nodecl,
                                       ...raises: [], tags: [].}
  Source   Edit
proc `>>`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `>`(x, y: Int128): bool {.importcpp: "((#) > (#))", nodecl, ...raises: [],
                               tags: [].}
  Source   Edit
proc `^=`(x: var Int128; y: Int128) {.importcpp: "((#) ^= (#))", nodecl,
                                      ...raises: [], tags: [].}
  Source   Edit
proc `^`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `div`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `mod`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc `|=`(x: var Int128; y: Int128) {.importcpp: "((#) |= (#))", nodecl,
                                      ...raises: [], tags: [].}
  Source   Edit
proc `|`(x, y: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc abs(x: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc cmp(x, y: Int128): int {....raises: [], tags: [].}
  Source   Edit
proc div=(x: var Int128; y: Int128) {.importcpp: "((#) /= (#))", nodecl,
                                      ...raises: [], tags: [].}
  Source   Edit
proc hash(x: Int128): Hash {....raises: [], tags: [].}
  Source   Edit
proc mod=(x: var Int128; y: Int128) {.importcpp: "((#) %= (#))", nodecl,
                                      ...raises: [], tags: [].}
  Source   Edit
proc parseInt128(s: string): Int128 {....raises: [], tags: [].}
  Source   Edit
proc pow(x, n, m: Int128): Int128 {....raises: [], tags: [].}
  Source   Edit
proc put(x: Int128) {....raises: [], tags: [].}
  Source   Edit
proc put_inner(x: Int128) {.importcpp: "output_int128((#))", nodecl, ...raises: [],
                            tags: [].}
  Source   Edit
proc read_and_parse_int128(): Int128 {....raises: [], tags: [].}
  Source   Edit
proc to_int(x: Int128): int {.importcpp: "(long long)(#)", nodecl, ...raises: [],
                              tags: [].}
  Source   Edit

Converters

converter to_Int128(x: SomeInteger): Int128 {.importcpp: "(__int128_t)((#))",
    nodecl, ...raises: [], tags: [].}
  Source   Edit