int128.html 104 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <!-- This file is generated by Nim. -->
  4. <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>int128</title>
  9. <!-- Google fonts -->
  10. <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
  11. <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
  12. <!-- Favicon -->
  13. <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
  14. <link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
  15. <!-- CSS -->
  16. <link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.3.1">
  17. <!-- JS -->
  18. <script type="text/javascript" src="dochack.js?v=2.3.1"></script>
  19. </head>
  20. <body>
  21. <div class="document" id="documentId">
  22. <div class="container">
  23. <h1 class="title">int128</h1>
  24. <div class="row">
  25. <div class="three columns">
  26. <div class="theme-select-wrapper">
  27. <label for="theme-select">Theme:&nbsp;</label>
  28. <select id="theme-select" onchange="setTheme(this.value)">
  29. <option value="auto">🌗 Match OS</option>
  30. <option value="dark">🌑 Dark</option>
  31. <option value="light">🌕 Light</option>
  32. </select>
  33. </div>
  34. <div id="global-links">
  35. <ul class="simple">
  36. <li><a id="indexLink" href="theindex.html">Index</a></li>
  37. </ul>
  38. </div>
  39. <div id="searchInputDiv">
  40. Search: <input type="search" id="searchInput" oninput="search()"/>
  41. </div>
  42. <div>
  43. Group by:
  44. <select onchange="groupBy(this.value)">
  45. <option value="section">Section</option>
  46. <option value="type">Type</option>
  47. </select>
  48. </div>
  49. <ul class="simple simple-toc" id="toc-list">
  50. <li>
  51. <details open>
  52. <summary><a class="reference reference-toplevel" href="#7" id="57">Types</a></summary>
  53. <ul class="simple simple-toc-section">
  54. <li><a class="reference" href="#Int128" title="Int128 = object">Int128</a></li>
  55. </ul>
  56. </details>
  57. </li>
  58. <li>
  59. <details open>
  60. <summary><a class="reference reference-toplevel" href="#10" id="60">Consts</a></summary>
  61. <ul class="simple simple-toc-section">
  62. <li><a class="reference" href="#NegOne" title="NegOne = (udata: [4294967295'u, 4294967295'u, 4294967295'u, 4294967295'u])">NegOne</a></li>
  63. <li><a class="reference" href="#One" title="One = (udata: [1'u, 0'u, 0'u, 0'u])">One</a></li>
  64. <li><a class="reference" href="#Ten" title="Ten = (udata: [10'u, 0'u, 0'u, 0'u])">Ten</a></li>
  65. <li><a class="reference" href="#Zero" title="Zero = (udata: [0'u, 0'u, 0'u, 0'u])">Zero</a></li>
  66. </ul>
  67. </details>
  68. </li>
  69. <li>
  70. <details open>
  71. <summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
  72. <ul class="simple simple-toc-section">
  73. <ul class="simple nested-toc-section">$
  74. <li><a class="reference" href="#%24%2CInt128" title="`$`(a: Int128): string">`$`(a: Int128): string</a></li>
  75. </ul>
  76. <ul class="simple nested-toc-section">*
  77. <li><a class="reference" href="#%2A%2CInt128%2Cint32" title="`*`(a: Int128; b: int32): Int128">`*`(a: Int128; b: int32): Int128</a></li>
  78. <li><a class="reference" href="#%2A%2CInt128%2CInt128" title="`*`(lhs, rhs: Int128): Int128">`*`(lhs, rhs: Int128): Int128</a></li>
  79. </ul>
  80. <ul class="simple nested-toc-section">*=
  81. <li><a class="reference" href="#%2A%3D%2CInt128%2CInt128" title="`*=`(a: var Int128; b: Int128)">`*=`(a: var Int128; b: Int128)</a></li>
  82. </ul>
  83. <ul class="simple nested-toc-section">+
  84. <li><a class="reference" href="#%2B%2CInt128%2CInt128" title="`+`(a, b: Int128): Int128">`+`(a, b: Int128): Int128</a></li>
  85. <li><a class="reference" href="#%2B%2CBiggestInt%2CInt128" title="`+`(a: BiggestInt; b: Int128): Int128">`+`(a: BiggestInt; b: Int128): Int128</a></li>
  86. <li><a class="reference" href="#%2B%2CInt128%2CBiggestInt" title="`+`(a: Int128; b: BiggestInt): Int128">`+`(a: Int128; b: BiggestInt): Int128</a></li>
  87. </ul>
  88. <ul class="simple nested-toc-section">+=
  89. <li><a class="reference" href="#%2B%3D%2CInt128%2CInt128" title="`+=`(a: var Int128; b: Int128)">`+=`(a: var Int128; b: Int128)</a></li>
  90. </ul>
  91. <ul class="simple nested-toc-section">-
  92. <li><a class="reference" href="#-%2CInt128%2CInt128" title="`-`(a, b: Int128): Int128">`-`(a, b: Int128): Int128</a></li>
  93. <li><a class="reference" href="#-%2CBiggestInt%2CInt128" title="`-`(a: BiggestInt; b: Int128): Int128">`-`(a: BiggestInt; b: Int128): Int128</a></li>
  94. <li><a class="reference" href="#-%2CInt128" title="`-`(a: Int128): Int128">`-`(a: Int128): Int128</a></li>
  95. <li><a class="reference" href="#-%2CInt128%2CBiggestInt" title="`-`(a: Int128; b: BiggestInt): Int128">`-`(a: Int128; b: BiggestInt): Int128</a></li>
  96. </ul>
  97. <ul class="simple nested-toc-section">-=
  98. <li><a class="reference" href="#-%3D%2CInt128%2CInt128" title="`-=`(a: var Int128; b: Int128)">`-=`(a: var Int128; b: Int128)</a></li>
  99. </ul>
  100. <ul class="simple nested-toc-section"><
  101. <li><a class="reference" href="#%3C%2CInt128%2CInt128" title="`&lt;`(a, b: Int128): bool">`&lt;`(a, b: Int128): bool</a></li>
  102. <li><a class="reference" href="#%3C%2CBiggestInt%2CInt128" title="`&lt;`(a: BiggestInt; b: Int128): bool">`&lt;`(a: BiggestInt; b: Int128): bool</a></li>
  103. <li><a class="reference" href="#%3C%2CInt128%2CBiggestInt" title="`&lt;`(a: Int128; b: BiggestInt): bool">`&lt;`(a: Int128; b: BiggestInt): bool</a></li>
  104. </ul>
  105. <ul class="simple nested-toc-section"><=
  106. <li><a class="reference" href="#%3C%3D%2CInt128%2CInt128" title="`&lt;=`(a, b: Int128): bool">`&lt;=`(a, b: Int128): bool</a></li>
  107. <li><a class="reference" href="#%3C%3D%2CBiggestInt%2CInt128" title="`&lt;=`(a: BiggestInt; b: Int128): bool">`&lt;=`(a: BiggestInt; b: Int128): bool</a></li>
  108. <li><a class="reference" href="#%3C%3D%2CInt128%2CBiggestInt" title="`&lt;=`(a: Int128; b: BiggestInt): bool">`&lt;=`(a: Int128; b: BiggestInt): bool</a></li>
  109. </ul>
  110. <ul class="simple nested-toc-section">==
  111. <li><a class="reference" href="#%3D%3D%2CInt128%2CInt128" title="`==`(a, b: Int128): bool">`==`(a, b: Int128): bool</a></li>
  112. <li><a class="reference" href="#%3D%3D%2CBiggestInt%2CInt128" title="`==`(a: BiggestInt; b: Int128): bool">`==`(a: BiggestInt; b: Int128): bool</a></li>
  113. <li><a class="reference" href="#%3D%3D%2CInt128%2CBiggestInt" title="`==`(a: Int128; b: BiggestInt): bool">`==`(a: Int128; b: BiggestInt): bool</a></li>
  114. </ul>
  115. <ul class="simple nested-toc-section">abs
  116. <li><a class="reference" href="#abs%2CInt128" title="abs(a: Int128): Int128">abs(a: Int128): Int128</a></li>
  117. </ul>
  118. <ul class="simple nested-toc-section">addInt128
  119. <li><a class="reference" href="#addInt128%2Cstring%2CInt128" title="addInt128(result: var string; value: Int128)">addInt128(result: var string; value: Int128)</a></li>
  120. </ul>
  121. <ul class="simple nested-toc-section">addToHex
  122. <li><a class="reference" href="#addToHex%2Cstring%2CInt128" title="addToHex(result: var string; arg: Int128)">addToHex(result: var string; arg: Int128)</a></li>
  123. </ul>
  124. <ul class="simple nested-toc-section">bitand
  125. <li><a class="reference" href="#bitand%2CInt128%2CInt128" title="bitand(a, b: Int128): Int128">bitand(a, b: Int128): Int128</a></li>
  126. </ul>
  127. <ul class="simple nested-toc-section">bitnot
  128. <li><a class="reference" href="#bitnot%2CInt128" title="bitnot(a: Int128): Int128">bitnot(a: Int128): Int128</a></li>
  129. </ul>
  130. <ul class="simple nested-toc-section">bitor
  131. <li><a class="reference" href="#bitor%2CInt128%2CInt128" title="bitor(a, b: Int128): Int128">bitor(a, b: Int128): Int128</a></li>
  132. </ul>
  133. <ul class="simple nested-toc-section">bitxor
  134. <li><a class="reference" href="#bitxor%2CInt128%2CInt128" title="bitxor(a, b: Int128): Int128">bitxor(a, b: Int128): Int128</a></li>
  135. </ul>
  136. <ul class="simple nested-toc-section">castToInt64
  137. <li><a class="reference" href="#castToInt64%2CInt128" title="castToInt64(arg: Int128): int64">castToInt64(arg: Int128): int64</a></li>
  138. </ul>
  139. <ul class="simple nested-toc-section">castToUInt64
  140. <li><a class="reference" href="#castToUInt64%2CInt128" title="castToUInt64(arg: Int128): uint64">castToUInt64(arg: Int128): uint64</a></li>
  141. </ul>
  142. <ul class="simple nested-toc-section">cmp
  143. <li><a class="reference" href="#cmp%2CInt128%2CInt128" title="cmp(a, b: Int128): int">cmp(a, b: Int128): int</a></li>
  144. </ul>
  145. <ul class="simple nested-toc-section">div
  146. <li><a class="reference" href="#div%2CInt128%2CInt128" title="`div`(a, b: Int128): Int128">`div`(a, b: Int128): Int128</a></li>
  147. </ul>
  148. <ul class="simple nested-toc-section">divMod
  149. <li><a class="reference" href="#divMod%2CInt128%2CInt128" title="divMod(dividend, divisor: Int128): tuple[quotient, remainder: Int128]">divMod(dividend, divisor: Int128): tuple[quotient, remainder: Int128]</a></li>
  150. </ul>
  151. <ul class="simple nested-toc-section">fastLog2
  152. <li><a class="reference" href="#fastLog2%2CInt128" title="fastLog2(a: Int128): int">fastLog2(a: Int128): int</a></li>
  153. </ul>
  154. <ul class="simple nested-toc-section">inc
  155. <li><a class="reference" href="#inc%2CInt128%2Cuint32" title="inc(a: var Int128; y: uint32 = 1)">inc(a: var Int128; y: uint32 = 1)</a></li>
  156. </ul>
  157. <ul class="simple nested-toc-section">maskBytes
  158. <li><a class="reference" href="#maskBytes%2CInt128%2Cint" title="maskBytes(arg: Int128; numbytes: int): Int128">maskBytes(arg: Int128; numbytes: int): Int128</a></li>
  159. </ul>
  160. <ul class="simple nested-toc-section">maskUInt8
  161. <li><a class="reference" href="#maskUInt8%2CInt128" title="maskUInt8(arg: Int128): Int128">maskUInt8(arg: Int128): Int128</a></li>
  162. </ul>
  163. <ul class="simple nested-toc-section">maskUInt16
  164. <li><a class="reference" href="#maskUInt16%2CInt128" title="maskUInt16(arg: Int128): Int128">maskUInt16(arg: Int128): Int128</a></li>
  165. </ul>
  166. <ul class="simple nested-toc-section">maskUInt32
  167. <li><a class="reference" href="#maskUInt32%2CInt128" title="maskUInt32(arg: Int128): Int128">maskUInt32(arg: Int128): Int128</a></li>
  168. </ul>
  169. <ul class="simple nested-toc-section">maskUInt64
  170. <li><a class="reference" href="#maskUInt64%2CInt128" title="maskUInt64(arg: Int128): Int128">maskUInt64(arg: Int128): Int128</a></li>
  171. </ul>
  172. <ul class="simple nested-toc-section">mod
  173. <li><a class="reference" href="#mod%2CInt128%2CInt128" title="`mod`(a, b: Int128): Int128">`mod`(a, b: Int128): Int128</a></li>
  174. </ul>
  175. <ul class="simple nested-toc-section">parseDecimalInt128
  176. <li><a class="reference" href="#parseDecimalInt128%2Cstring%2Cint" title="parseDecimalInt128(arg: string; pos: int = 0): Int128">parseDecimalInt128(arg: string; pos: int = 0): Int128</a></li>
  177. </ul>
  178. <ul class="simple nested-toc-section">shl
  179. <li><a class="reference" href="#shl%2CInt128%2Cint" title="`shl`(a: Int128; b: int): Int128">`shl`(a: Int128; b: int): Int128</a></li>
  180. </ul>
  181. <ul class="simple nested-toc-section">shr
  182. <li><a class="reference" href="#shr%2CInt128%2Cint" title="`shr`(a: Int128; b: int): Int128">`shr`(a: Int128; b: int): Int128</a></li>
  183. </ul>
  184. <ul class="simple nested-toc-section">toFloat64
  185. <li><a class="reference" href="#toFloat64%2CInt128" title="toFloat64(arg: Int128): float64">toFloat64(arg: Int128): float64</a></li>
  186. </ul>
  187. <ul class="simple nested-toc-section">toHex
  188. <li><a class="reference" href="#toHex%2CInt128" title="toHex(arg: Int128): string">toHex(arg: Int128): string</a></li>
  189. </ul>
  190. <ul class="simple nested-toc-section">toInt
  191. <li><a class="reference" href="#toInt%2CInt128" title="toInt(arg: Int128): int">toInt(arg: Int128): int</a></li>
  192. </ul>
  193. <ul class="simple nested-toc-section">toInt8
  194. <li><a class="reference" href="#toInt8%2CInt128" title="toInt8(arg: Int128): int8">toInt8(arg: Int128): int8</a></li>
  195. </ul>
  196. <ul class="simple nested-toc-section">toInt16
  197. <li><a class="reference" href="#toInt16%2CInt128" title="toInt16(arg: Int128): int16">toInt16(arg: Int128): int16</a></li>
  198. </ul>
  199. <ul class="simple nested-toc-section">toInt32
  200. <li><a class="reference" href="#toInt32%2CInt128" title="toInt32(arg: Int128): int32">toInt32(arg: Int128): int32</a></li>
  201. </ul>
  202. <ul class="simple nested-toc-section">toInt64
  203. <li><a class="reference" href="#toInt64%2CInt128" title="toInt64(arg: Int128): int64">toInt64(arg: Int128): int64</a></li>
  204. </ul>
  205. <ul class="simple nested-toc-section">toInt64Checked
  206. <li><a class="reference" href="#toInt64Checked%2CInt128%2Cint64" title="toInt64Checked(arg: Int128; onError: int64): int64">toInt64Checked(arg: Int128; onError: int64): int64</a></li>
  207. </ul>
  208. <ul class="simple nested-toc-section">toInt128
  209. <li><a class="reference" href="#toInt128%2Cfloat64" title="toInt128(arg: float64): Int128">toInt128(arg: float64): Int128</a></li>
  210. <li><a class="reference" href="#toInt128%2CT" title="toInt128[T: SomeInteger | bool](arg: T): Int128">toInt128[T: SomeInteger | bool](arg: T): Int128</a></li>
  211. </ul>
  212. <ul class="simple nested-toc-section">toUInt
  213. <li><a class="reference" href="#toUInt%2CInt128" title="toUInt(arg: Int128): uint">toUInt(arg: Int128): uint</a></li>
  214. </ul>
  215. <ul class="simple nested-toc-section">toUInt8
  216. <li><a class="reference" href="#toUInt8%2CInt128" title="toUInt8(arg: Int128): uint8">toUInt8(arg: Int128): uint8</a></li>
  217. </ul>
  218. <ul class="simple nested-toc-section">toUInt16
  219. <li><a class="reference" href="#toUInt16%2CInt128" title="toUInt16(arg: Int128): uint16">toUInt16(arg: Int128): uint16</a></li>
  220. </ul>
  221. <ul class="simple nested-toc-section">toUInt32
  222. <li><a class="reference" href="#toUInt32%2CInt128" title="toUInt32(arg: Int128): uint32">toUInt32(arg: Int128): uint32</a></li>
  223. </ul>
  224. <ul class="simple nested-toc-section">toUInt64
  225. <li><a class="reference" href="#toUInt64%2CInt128" title="toUInt64(arg: Int128): uint64">toUInt64(arg: Int128): uint64</a></li>
  226. </ul>
  227. </ul>
  228. </details>
  229. </li>
  230. <li>
  231. <details open>
  232. <summary><a class="reference reference-toplevel" href="#18" id="68">Templates</a></summary>
  233. <ul class="simple simple-toc-section">
  234. <ul class="simple nested-toc-section">high
  235. <li><a class="reference" href="#high.t%2Ctypedesc%5BInt128%5D" title="high(t: typedesc[Int128]): Int128">high(t: typedesc[Int128]): Int128</a></li>
  236. </ul>
  237. <ul class="simple nested-toc-section">low
  238. <li><a class="reference" href="#low.t%2Ctypedesc%5BInt128%5D" title="low(t: typedesc[Int128]): Int128">low(t: typedesc[Int128]): Int128</a></li>
  239. </ul>
  240. </ul>
  241. </details>
  242. </li>
  243. </ul>
  244. </div>
  245. <div class="nine columns" id="content">
  246. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L1" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  247. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L1" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  248. <div id="tocRoot"></div>
  249. <p class="module-desc">This module is for compiler internal use only. For reliable error messages and range checks, the compiler needs a data type that can hold all from <tt class="docutils literal"><span class="pre"><span class="Identifier">low</span><span class="Punctuation">(</span><span class="Identifier">BiggestInt</span><span class="Punctuation">)</span></span></tt> to <tt class="docutils literal"><span class="pre"><span class="Identifier">high</span><span class="Punctuation">(</span><span class="Identifier">BiggestUInt</span><span class="Punctuation">)</span></span></tt>, This type is for that purpose.</p>
  250. <div class="section" id="7">
  251. <h1><a class="toc-backref" href="#7">Types</a></h1>
  252. <dl class="item">
  253. <div id="Int128">
  254. <dt><pre><a href="int128.html#Int128"><span class="Identifier">Int128</span></a> <span class="Other">=</span> <span class="Keyword">object</span></pre></dt>
  255. <dd>
  256. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L12" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  257. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L12" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  258. </dd>
  259. </div>
  260. </dl>
  261. </div>
  262. <div class="section" id="10">
  263. <h1><a class="toc-backref" href="#10">Consts</a></h1>
  264. <dl class="item">
  265. <div id="NegOne">
  266. <dt><pre><a href="int128.html#NegOne"><span class="Identifier">NegOne</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">udata</span><span class="Other">:</span> <span class="Other">[</span><span class="DecNumber">4294967295'u</span><span class="Other">,</span> <span class="DecNumber">4294967295'u</span><span class="Other">,</span> <span class="DecNumber">4294967295'u</span><span class="Other">,</span> <span class="DecNumber">4294967295'u</span><span class="Other">]</span><span class="Other">)</span></pre></dt>
  267. <dd>
  268. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L28" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  269. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L28" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  270. </dd>
  271. </div>
  272. <div id="One">
  273. <dt><pre><a href="int128.html#One"><span class="Identifier">One</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">udata</span><span class="Other">:</span> <span class="Other">[</span><span class="DecNumber">1'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">]</span><span class="Other">)</span></pre></dt>
  274. <dd>
  275. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L24" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  276. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L24" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  277. </dd>
  278. </div>
  279. <div id="Ten">
  280. <dt><pre><a href="int128.html#Ten"><span class="Identifier">Ten</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">udata</span><span class="Other">:</span> <span class="Other">[</span><span class="DecNumber">10'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">]</span><span class="Other">)</span></pre></dt>
  281. <dd>
  282. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L25" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  283. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L25" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  284. </dd>
  285. </div>
  286. <div id="Zero">
  287. <dt><pre><a href="int128.html#Zero"><span class="Identifier">Zero</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">udata</span><span class="Other">:</span> <span class="Other">[</span><span class="DecNumber">0'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">,</span> <span class="DecNumber">0'u</span><span class="Other">]</span><span class="Other">)</span></pre></dt>
  288. <dd>
  289. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L23" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  290. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L23" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  291. </dd>
  292. </div>
  293. </dl>
  294. </div>
  295. <div class="section" id="12">
  296. <h1><a class="toc-backref" href="#12">Procs</a></h1>
  297. <dl class="item">
  298. <div id="$-procs-all">
  299. <div id="$,Int128">
  300. <dt><pre><span class="Keyword">proc</span> <a href="#%24%2CInt128"><span class="Identifier">`$`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  301. <dd>
  302. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L33" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  303. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L33" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  304. </dd>
  305. </div>
  306. </div>
  307. <div id="*-procs-all">
  308. <div id="*,Int128,int32">
  309. <dt><pre><span class="Keyword">proc</span> <a href="#%2A%2CInt128%2Cint32"><span class="Identifier">`*`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">int32</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  310. <dd>
  311. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L338" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  312. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L338" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  313. </dd>
  314. </div>
  315. <div id="*,Int128,Int128">
  316. <dt><pre><span class="Keyword">proc</span> <a href="#%2A%2CInt128%2CInt128"><span class="Identifier">`*`</span></a><span class="Other">(</span><span class="Identifier">lhs</span><span class="Other">,</span> <span class="Identifier">rhs</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  317. <dd>
  318. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L359" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  319. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L359" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  320. </dd>
  321. </div>
  322. </div>
  323. <div id="*=-procs-all">
  324. <div id="*=,Int128,Int128">
  325. <dt><pre><span class="Keyword">proc</span> <a href="#%2A%3D%2CInt128%2CInt128"><span class="Identifier">`*=`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  326. <dd>
  327. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L368" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  328. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L368" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  329. </dd>
  330. </div>
  331. </div>
  332. <div id="+-procs-all">
  333. <div id="+,Int128,Int128">
  334. <dt><pre><span class="Keyword">proc</span> <a href="#%2B%2CInt128%2CInt128"><span class="Identifier">`+`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  335. <dd>
  336. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L290" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  337. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L290" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  338. </dd>
  339. </div>
  340. <div id="+,BiggestInt,Int128">
  341. <dt><pre><span class="Keyword">proc</span> <a href="#%2B%2CBiggestInt%2CInt128"><span class="Identifier">`+`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  342. <dd>
  343. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L517" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  344. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L517" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  345. </dd>
  346. </div>
  347. <div id="+,Int128,BiggestInt">
  348. <dt><pre><span class="Keyword">proc</span> <a href="#%2B%2CInt128%2CBiggestInt"><span class="Identifier">`+`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  349. <dd>
  350. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L520" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  351. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L520" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  352. </dd>
  353. </div>
  354. </div>
  355. <div id="+=-procs-all">
  356. <div id="+=,Int128,Int128">
  357. <dt><pre><span class="Keyword">proc</span> <a href="#%2B%3D%2CInt128%2CInt128"><span class="Identifier">`+=`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  358. <dd>
  359. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L301" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  360. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L301" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  361. </dd>
  362. </div>
  363. </div>
  364. <div id="--procs-all">
  365. <div id="-,Int128,Int128">
  366. <dt><pre><span class="Keyword">proc</span> <a href="#-%2CInt128%2CInt128"><span class="Identifier">`-`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  367. <dd>
  368. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L308" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  369. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L308" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  370. </dd>
  371. </div>
  372. <div id="-,BiggestInt,Int128">
  373. <dt><pre><span class="Keyword">proc</span> <a href="#-%2CBiggestInt%2CInt128"><span class="Identifier">`-`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  374. <dd>
  375. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L511" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  376. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L511" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  377. </dd>
  378. </div>
  379. <div id="-,Int128">
  380. <dt><pre><span class="Keyword">proc</span> <a href="#-%2CInt128"><span class="Identifier">`-`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  381. <dd>
  382. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L304" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  383. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L304" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  384. </dd>
  385. </div>
  386. <div id="-,Int128,BiggestInt">
  387. <dt><pre><span class="Keyword">proc</span> <a href="#-%2CInt128%2CBiggestInt"><span class="Identifier">`-`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  388. <dd>
  389. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L514" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  390. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L514" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  391. </dd>
  392. </div>
  393. </div>
  394. <div id="-=-procs-all">
  395. <div id="-=,Int128,Int128">
  396. <dt><pre><span class="Keyword">proc</span> <a href="#-%3D%2CInt128%2CInt128"><span class="Identifier">`-=`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  397. <dd>
  398. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L311" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  399. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L311" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  400. </dd>
  401. </div>
  402. </div>
  403. <div id="&lt;-procs-all">
  404. <div id="<,Int128,Int128">
  405. <dt><pre><span class="Keyword">proc</span> <a href="#%3C%2CInt128%2CInt128"><span class="Identifier">`&lt;`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  406. <dd>
  407. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L198" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  408. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L198" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  409. </dd>
  410. </div>
  411. <div id="<,BiggestInt,Int128">
  412. <dt><pre><span class="Keyword">proc</span> <a href="#%3C%2CBiggestInt%2CInt128"><span class="Identifier">`&lt;`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  413. <dd>
  414. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L496" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  415. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L496" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  416. </dd>
  417. </div>
  418. <div id="<,Int128,BiggestInt">
  419. <dt><pre><span class="Keyword">proc</span> <a href="#%3C%2CInt128%2CBiggestInt"><span class="Identifier">`&lt;`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  420. <dd>
  421. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L493" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  422. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L493" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  423. </dd>
  424. </div>
  425. </div>
  426. <div id="&lt;=-procs-all">
  427. <div id="<=,Int128,Int128">
  428. <dt><pre><span class="Keyword">proc</span> <a href="#%3C%3D%2CInt128%2CInt128"><span class="Identifier">`&lt;=`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  429. <dd>
  430. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L201" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  431. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L201" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  432. </dd>
  433. </div>
  434. <div id="<=,BiggestInt,Int128">
  435. <dt><pre><span class="Keyword">proc</span> <a href="#%3C%3D%2CBiggestInt%2CInt128"><span class="Identifier">`&lt;=`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  436. <dd>
  437. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L502" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  438. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L502" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  439. </dd>
  440. </div>
  441. <div id="<=,Int128,BiggestInt">
  442. <dt><pre><span class="Keyword">proc</span> <a href="#%3C%3D%2CInt128%2CBiggestInt"><span class="Identifier">`&lt;=`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  443. <dd>
  444. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L499" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  445. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L499" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  446. </dd>
  447. </div>
  448. </div>
  449. <div id="==-procs-all">
  450. <div id="==,Int128,Int128">
  451. <dt><pre><span class="Keyword">proc</span> <a href="#%3D%3D%2CInt128%2CInt128"><span class="Identifier">`==`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  452. <dd>
  453. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L204" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  454. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L204" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  455. </dd>
  456. </div>
  457. <div id="==,BiggestInt,Int128">
  458. <dt><pre><span class="Keyword">proc</span> <a href="#%3D%3D%2CBiggestInt%2CInt128"><span class="Identifier">`==`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  459. <dd>
  460. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L508" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  461. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L508" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  462. </dd>
  463. </div>
  464. <div id="==,Int128,BiggestInt">
  465. <dt><pre><span class="Keyword">proc</span> <a href="#%3D%3D%2CInt128%2CBiggestInt"><span class="Identifier">`==`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">BiggestInt</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  466. <dd>
  467. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L505" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  468. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L505" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  469. </dd>
  470. </div>
  471. </div>
  472. <div id="abs-procs-all">
  473. <div id="abs,Int128">
  474. <dt><pre><span class="Keyword">proc</span> <a href="#abs%2CInt128"><span class="Identifier">abs</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  475. <dd>
  476. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L314" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  477. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L314" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  478. </dd>
  479. </div>
  480. </div>
  481. <div id="addInt128-procs-all">
  482. <div id="addInt128,string,Int128">
  483. <dt><pre><span class="Keyword">proc</span> <a href="#addInt128%2Cstring%2CInt128"><span class="Identifier">addInt128</span></a><span class="Other">(</span><span class="Identifier">result</span><span class="Other">:</span> <span class="Keyword">var</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">value</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  484. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  485. <dd>
  486. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L444" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  487. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L444" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  488. </dd>
  489. </div>
  490. </div>
  491. <div id="addToHex-procs-all">
  492. <div id="addToHex,string,Int128">
  493. <dt><pre><span class="Keyword">proc</span> <a href="#addToHex%2Cstring%2CInt128"><span class="Identifier">addToHex</span></a><span class="Other">(</span><span class="Identifier">result</span><span class="Other">:</span> <span class="Keyword">var</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  494. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  495. <dd>
  496. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L168" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  497. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L168" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  498. </dd>
  499. </div>
  500. </div>
  501. <div id="bitand-procs-all">
  502. <div id="bitand,Int128,Int128">
  503. <dt><pre><span class="Keyword">proc</span> <a href="#bitand%2CInt128%2CInt128"><span class="Identifier">bitand</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  504. <dd>
  505. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L218" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  506. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L218" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  507. </dd>
  508. </div>
  509. </div>
  510. <div id="bitnot-procs-all">
  511. <div id="bitnot,Int128">
  512. <dt><pre><span class="Keyword">proc</span> <a href="#bitnot%2CInt128"><span class="Identifier">bitnot</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  513. <dd>
  514. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L211" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  515. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L211" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  516. </dd>
  517. </div>
  518. </div>
  519. <div id="bitor-procs-all">
  520. <div id="bitor,Int128,Int128">
  521. <dt><pre><span class="Keyword">proc</span> <a href="#bitor%2CInt128%2CInt128"><span class="Identifier">bitor</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  522. <dd>
  523. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L225" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  524. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L225" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  525. </dd>
  526. </div>
  527. </div>
  528. <div id="bitxor-procs-all">
  529. <div id="bitxor,Int128,Int128">
  530. <dt><pre><span class="Keyword">proc</span> <a href="#bitxor%2CInt128%2CInt128"><span class="Identifier">bitxor</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  531. <dd>
  532. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L232" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  533. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L232" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  534. </dd>
  535. </div>
  536. </div>
  537. <div id="castToInt64-procs-all">
  538. <div id="castToInt64,Int128">
  539. <dt><pre><span class="Keyword">proc</span> <a href="#castToInt64%2CInt128"><span class="Identifier">castToInt64</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int64</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  540. <dd>
  541. Conversion to int64 without range check.
  542. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L155" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  543. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L155" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  544. </dd>
  545. </div>
  546. </div>
  547. <div id="castToUInt64-procs-all">
  548. <div id="castToUInt64,Int128">
  549. <dt><pre><span class="Keyword">proc</span> <a href="#castToUInt64%2CInt128"><span class="Identifier">castToUInt64</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint64</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  550. <dd>
  551. Conversion to uint64 without range check.
  552. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L159" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  553. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L159" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  554. </dd>
  555. </div>
  556. </div>
  557. <div id="cmp-procs-all">
  558. <div id="cmp,Int128,Int128">
  559. <dt><pre><span class="Keyword">proc</span> <a href="#cmp%2CInt128%2CInt128"><span class="Identifier">cmp</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  560. <dd>
  561. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L188" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  562. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L188" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  563. </dd>
  564. </div>
  565. </div>
  566. <div id="div-procs-all">
  567. <div id="div,Int128,Int128">
  568. <dt><pre><span class="Keyword">proc</span> <a href="#div%2CInt128%2CInt128"><span class="Identifier">`div`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  569. <dd>
  570. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L436" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  571. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L436" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  572. </dd>
  573. </div>
  574. </div>
  575. <div id="divMod-procs-all">
  576. <div id="divMod,Int128,Int128">
  577. <dt><pre><span class="Keyword">proc</span> <a href="#divMod%2CInt128%2CInt128"><span class="Identifier">divMod</span></a><span class="Other">(</span><span class="Identifier">dividend</span><span class="Other">,</span> <span class="Identifier">divisor</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">quotient</span><span class="Other">,</span> <span class="Identifier">remainder</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">]</span> {.
  578. <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  579. <dd>
  580. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L384" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  581. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L384" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  582. </dd>
  583. </div>
  584. </div>
  585. <div id="fastLog2-procs-all">
  586. <div id="fastLog2,Int128">
  587. <dt><pre><span class="Keyword">proc</span> <a href="#fastLog2%2CInt128"><span class="Identifier">fastLog2</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  588. <dd>
  589. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L373" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  590. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L373" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  591. </dd>
  592. </div>
  593. </div>
  594. <div id="inc-procs-all">
  595. <div id="inc,Int128,uint32">
  596. <dt><pre><span class="Keyword">proc</span> <a href="#inc%2CInt128%2Cuint32"><span class="Identifier">inc</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">y</span><span class="Other">:</span> <span class="Identifier">uint32</span> <span class="Other">=</span> <span class="DecNumber">1</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  597. <dd>
  598. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L178" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  599. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L178" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  600. </dd>
  601. </div>
  602. </div>
  603. <div id="maskBytes-procs-all">
  604. <div id="maskBytes,Int128,int">
  605. <dt><pre><span class="Keyword">proc</span> <a href="#maskBytes%2CInt128%2Cint"><span class="Identifier">maskBytes</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">numbytes</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span class="Identifier">noinit</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  606. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  607. <dd>
  608. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L581" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  609. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L581" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  610. </dd>
  611. </div>
  612. </div>
  613. <div id="maskUInt8-procs-all">
  614. <div id="maskUInt8,Int128">
  615. <dt><pre><span class="Keyword">proc</span> <a href="#maskUInt8%2CInt128"><span class="Identifier">maskUInt8</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span class="Identifier">noinit</span><span class="Other">,</span> <span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  616. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  617. <dd>
  618. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L574" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  619. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L574" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  620. </dd>
  621. </div>
  622. </div>
  623. <div id="maskUInt16-procs-all">
  624. <div id="maskUInt16,Int128">
  625. <dt><pre><span class="Keyword">proc</span> <a href="#maskUInt16%2CInt128"><span class="Identifier">maskUInt16</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span class="Identifier">noinit</span><span class="Other">,</span> <span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  626. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  627. <dd>
  628. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L567" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  629. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L567" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  630. </dd>
  631. </div>
  632. </div>
  633. <div id="maskUInt32-procs-all">
  634. <div id="maskUInt32,Int128">
  635. <dt><pre><span class="Keyword">proc</span> <a href="#maskUInt32%2CInt128"><span class="Identifier">maskUInt32</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span class="Identifier">noinit</span><span class="Other">,</span> <span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  636. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  637. <dd>
  638. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L560" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  639. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L560" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  640. </dd>
  641. </div>
  642. </div>
  643. <div id="maskUInt64-procs-all">
  644. <div id="maskUInt64,Int128">
  645. <dt><pre><span class="Keyword">proc</span> <a href="#maskUInt64%2CInt128"><span class="Identifier">maskUInt64</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span class="Identifier">noinit</span><span class="Other">,</span> <span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  646. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  647. <dd>
  648. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L553" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  649. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L553" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  650. </dd>
  651. </div>
  652. </div>
  653. <div id="mod-procs-all">
  654. <div id="mod,Int128,Int128">
  655. <dt><pre><span class="Keyword">proc</span> <a href="#mod%2CInt128%2CInt128"><span class="Identifier">`mod`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  656. <dd>
  657. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L440" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  658. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L440" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  659. </dd>
  660. </div>
  661. </div>
  662. <div id="parseDecimalInt128-procs-all">
  663. <div id="parseDecimalInt128,string,int">
  664. <dt><pre><span class="Keyword">proc</span> <a href="#parseDecimalInt128%2Cstring%2Cint"><span class="Identifier">parseDecimalInt128</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">pos</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="DecNumber">0</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  665. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  666. <dd>
  667. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L472" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  668. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L472" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  669. </dd>
  670. </div>
  671. </div>
  672. <div id="shl-procs-all">
  673. <div id="shl,Int128,int">
  674. <dt><pre><span class="Keyword">proc</span> <a href="#shl%2CInt128%2Cint"><span class="Identifier">`shl`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  675. <dd>
  676. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L266" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  677. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L266" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  678. </dd>
  679. </div>
  680. </div>
  681. <div id="shr-procs-all">
  682. <div id="shr,Int128,int">
  683. <dt><pre><span class="Keyword">proc</span> <a href="#shr%2CInt128%2Cint"><span class="Identifier">`shr`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  684. <dd>
  685. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L239" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  686. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L239" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  687. </dd>
  688. </div>
  689. </div>
  690. <div id="toFloat64-procs-all">
  691. <div id="toFloat64,Int128">
  692. <dt><pre><span class="Keyword">proc</span> <a href="#toFloat64%2CInt128"><span class="Identifier">toFloat64</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">float64</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  693. <dd>
  694. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L523" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  695. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L523" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  696. </dd>
  697. </div>
  698. </div>
  699. <div id="toHex-procs-all">
  700. <div id="toHex,Int128">
  701. <dt><pre><span class="Keyword">proc</span> <a href="#toHex%2CInt128"><span class="Identifier">toHex</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  702. <dd>
  703. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L174" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  704. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L174" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  705. </dd>
  706. </div>
  707. </div>
  708. <div id="toInt-procs-all">
  709. <div id="toInt,Int128">
  710. <dt><pre><span class="Keyword">proc</span> <a href="#toInt%2CInt128"><span class="Identifier">toInt</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  711. <dd>
  712. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L120" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  713. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L120" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  714. </dd>
  715. </div>
  716. </div>
  717. <div id="toInt8-procs-all">
  718. <div id="toInt8,Int128">
  719. <dt><pre><span class="Keyword">proc</span> <a href="#toInt8%2CInt128"><span class="Identifier">toInt8</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int8</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  720. <dd>
  721. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L108" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  722. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L108" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  723. </dd>
  724. </div>
  725. </div>
  726. <div id="toInt16-procs-all">
  727. <div id="toInt16,Int128">
  728. <dt><pre><span class="Keyword">proc</span> <a href="#toInt16%2CInt128"><span class="Identifier">toInt16</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int16</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  729. <dd>
  730. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L96" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  731. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L96" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  732. </dd>
  733. </div>
  734. </div>
  735. <div id="toInt32-procs-all">
  736. <div id="toInt32,Int128">
  737. <dt><pre><span class="Keyword">proc</span> <a href="#toInt32%2CInt128"><span class="Identifier">toInt32</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int32</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  738. <dd>
  739. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L84" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  740. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L84" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  741. </dd>
  742. </div>
  743. </div>
  744. <div id="toInt64-procs-all">
  745. <div id="toInt64,Int128">
  746. <dt><pre><span class="Keyword">proc</span> <a href="#toInt64%2CInt128"><span class="Identifier">toInt64</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int64</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  747. <dd>
  748. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L65" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  749. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L65" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  750. </dd>
  751. </div>
  752. </div>
  753. <div id="toInt64Checked-procs-all">
  754. <div id="toInt64Checked,Int128,int64">
  755. <dt><pre><span class="Keyword">proc</span> <a href="#toInt64Checked%2CInt128%2Cint64"><span class="Identifier">toInt64Checked</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">;</span> <span class="Identifier">onError</span><span class="Other">:</span> <span class="Identifier">int64</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int64</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  756. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  757. <dd>
  758. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L75" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  759. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L75" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  760. </dd>
  761. </div>
  762. </div>
  763. <div id="toInt128-procs-all">
  764. <div id="toInt128,float64">
  765. <dt><pre><span class="Keyword">proc</span> <a href="#toInt128%2Cfloat64"><span class="Identifier">toInt128</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <span class="Identifier">float64</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  766. <dd>
  767. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L538" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  768. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L538" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  769. </dd>
  770. </div>
  771. <div id="toInt128,T">
  772. <dt><pre><span class="Keyword">proc</span> <a href="#toInt128%2CT"><span class="Identifier">toInt128</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">:</span> <span class="Identifier">SomeInteger</span> <span class="Operator">|</span> <span class="Identifier">bool</span><span class="Other">]</span><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <span class="Identifier">T</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a></pre></dt>
  773. <dd>
  774. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L35" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  775. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L35" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  776. </dd>
  777. </div>
  778. </div>
  779. <div id="toUInt-procs-all">
  780. <div id="toUInt,Int128">
  781. <dt><pre><span class="Keyword">proc</span> <a href="#toUInt%2CInt128"><span class="Identifier">toUInt</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  782. <dd>
  783. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L149" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  784. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L149" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  785. </dd>
  786. </div>
  787. </div>
  788. <div id="toUInt8-procs-all">
  789. <div id="toUInt8,Int128">
  790. <dt><pre><span class="Keyword">proc</span> <a href="#toUInt8%2CInt128"><span class="Identifier">toUInt8</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint8</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  791. <dd>
  792. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L143" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  793. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L143" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  794. </dd>
  795. </div>
  796. </div>
  797. <div id="toUInt16-procs-all">
  798. <div id="toUInt16,Int128">
  799. <dt><pre><span class="Keyword">proc</span> <a href="#toUInt16%2CInt128"><span class="Identifier">toUInt16</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint16</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  800. <dd>
  801. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L137" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  802. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L137" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  803. </dd>
  804. </div>
  805. </div>
  806. <div id="toUInt32-procs-all">
  807. <div id="toUInt32,Int128">
  808. <dt><pre><span class="Keyword">proc</span> <a href="#toUInt32%2CInt128"><span class="Identifier">toUInt32</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint32</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  809. <dd>
  810. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L131" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  811. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L131" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  812. </dd>
  813. </div>
  814. </div>
  815. <div id="toUInt64-procs-all">
  816. <div id="toUInt64,Int128">
  817. <dt><pre><span class="Keyword">proc</span> <a href="#toUInt64%2CInt128"><span class="Identifier">toUInt64</span></a><span class="Other">(</span><span class="Identifier">arg</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint64</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  818. <dd>
  819. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L126" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  820. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L126" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  821. </dd>
  822. </div>
  823. </div>
  824. </dl>
  825. </div>
  826. <div class="section" id="18">
  827. <h1><a class="toc-backref" href="#18">Templates</a></h1>
  828. <dl class="item">
  829. <div id="high-templates-all">
  830. <div id="high.t,typedesc[Int128]">
  831. <dt><pre><span class="Keyword">template</span> <a href="#high.t%2Ctypedesc%5BInt128%5D"><span class="Identifier">high</span></a><span class="Other">(</span><span class="Identifier">t</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">[</span><a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a></pre></dt>
  832. <dd>
  833. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L31" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  834. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L31" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  835. </dd>
  836. </div>
  837. </div>
  838. <div id="low-templates-all">
  839. <div id="low.t,typedesc[Int128]">
  840. <dt><pre><span class="Keyword">template</span> <a href="#low.t%2Ctypedesc%5BInt128%5D"><span class="Identifier">low</span></a><span class="Other">(</span><span class="Identifier">t</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">[</span><a href="int128.html#Int128"><span class="Identifier">Int128</span></a><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <a href="int128.html#Int128"><span class="Identifier">Int128</span></a></pre></dt>
  841. <dd>
  842. <a href="https://github.com/nim-lang/Nim/tree/devel/compiler/int128.nim#L30" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  843. <a href="https://github.com/nim-lang/Nim/edit/devel/compiler/int128.nim#L30" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  844. </dd>
  845. </div>
  846. </div>
  847. </dl>
  848. </div>
  849. </div>
  850. </div>
  851. <div class="twelve-columns footer">
  852. <span class="nim-sprite"></span>
  853. <br>
  854. <small style="color: var(--hint);">Made with Nim. Generated: 2025-08-14 14:48:21 UTC</small>
  855. </div>
  856. </div>
  857. </div>
  858. <script defer data-domain="nim-lang.org" src="https://plausible.io/js/plausible.js"></script>
  859. </body>
  860. </html>