Microchip Technology SW006023-2N Datenbogen

Seite von 238
Mixing C/C++ and Assembly Language
 2012 Microchip Technology Inc.
DS51686E-page 165
_clz(x)  
Count leading zeroes in 
x
_ctz(x)
Count trailing zeroes in x
_clo(x)
Count leading ones in x
_dclz(x)
Simulate 64-bit count leading zeroes in x
_dclo(x)
Simulate 64-bit count leading ones in x
_dctz(x
Simulate 64-bit count trailing zeroes in x
_wsbh(x)
See 
<xc.h>
 file
_bswapw(x)
See 
<xc.h>
 file
_ins(tgt,val,pos,sz)
See 
<xc.h>
 file
_ext(x,pos,sz)
See 
<xc.h>
 file
_jr_hb()
See 
<xc.h>
 file
_wrpgpr(regno, val)
See 
<xc.h>
 file
_rdpgpr(regno)
See 
<xc.h>
 file
_get_byte(addr, 
errp)
Return the least significant byte of addr
_get_half(addr, 
errp)
Return the least significant 16-bit word of addr
_get_word(addr, 
errp)
Return the least significant 32-bit word of addr
_get_dword(addr, 
errp)
Return the least significant 64-bit  of addr
_put_byte(addr, v)
Write the least significant byte of addr with v
_put_half(addr, v)
Write the least significant 16-bit word of addr with v
_put_word(addr, v)
Write the least significant 32-bit word of addr with v
_put_dword(addr, v)
Write the least significant 64-bit word of addr with v
TABLE 14-5:
PREDEFINED MACROS
Macro
Description