high/low was missing the internal proc
This commit is contained in:
parent
8c0d830acf
commit
0dae6897b1
|
@ -82,6 +82,8 @@ make_binary(`xor`, Stint)
|
||||||
# proc `shl`*(x: Stint, y: SomeInteger): Stint {.fooPragma, inline, noSideEffect.} =
|
# proc `shl`*(x: Stint, y: SomeInteger): Stint {.fooPragma, inline, noSideEffect.} =
|
||||||
# result.data = x.data shl y
|
# result.data = x.data shl y
|
||||||
|
|
||||||
|
import ./private/int_highlow
|
||||||
|
|
||||||
func high*[bits: static[int]](_: typedesc[Stint[bits]]): Stint[bits] {.inline.} =
|
func high*[bits: static[int]](_: typedesc[Stint[bits]]): Stint[bits] {.inline.} =
|
||||||
result.data = high(type result.data)
|
result.data = high(type result.data)
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,8 @@ proc `shr`*(x: StUint, y: SomeInteger): StUint {.fooPragma, inline, noSideEffect
|
||||||
proc `shl`*(x: StUint, y: SomeInteger): StUint {.fooPragma, inline, noSideEffect.} =
|
proc `shl`*(x: StUint, y: SomeInteger): StUint {.fooPragma, inline, noSideEffect.} =
|
||||||
result.data = x.data shl y
|
result.data = x.data shl y
|
||||||
|
|
||||||
|
import ./private/uint_highlow
|
||||||
|
|
||||||
func high*[bits: static[int]](_: typedesc[Stuint[bits]]): Stuint[bits] {.inline.} =
|
func high*[bits: static[int]](_: typedesc[Stuint[bits]]): Stuint[bits] {.inline.} =
|
||||||
result.data = high(type result.data)
|
result.data = high(type result.data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue