mirror of
https://github.com/micropython/micropython.git
synced 2025-09-06 18:00:48 +02:00
14 lines
193 B
Python
14 lines
193 B
Python
@micropython.asm_thumb
|
|
def clz(r0):
|
|
clz(r0, r0)
|
|
|
|
print(clz(0xf0))
|
|
print(clz(0x8000))
|
|
|
|
@micropython.asm_thumb
|
|
def rbit(r0):
|
|
rbit(r0, r0)
|
|
|
|
print(hex(rbit(0xf0)))
|
|
print(hex(rbit(0x8000)))
|