def bnot(value, width=None):
 if (width is None):
  width = context.bits
 mask = ((1 << width) - 1)
 return (mask ^ value)

def bnot ( value , width = None ) : if ( width is None ) : width = context . bits mask = ( ( 1 << width ) - 1 ) return ( mask ^ value )
returns the binary inverse of value .