Synopsis
#include <inmsp.h>
unsigned __bcd_negate_short(unsigned x);
Description

__bcd_negate_short negates (computes the 9's complement of) x using decimal arithmetic. x must be a binary coded decimal number and the result is a binary coded decimal number.

__bcd_negate_short is an intrinsic function and produces inline code.

Portability

__bcd_negate_short can be used on any MSP430 device.