SMDFDecrementUINT64

Subtracts a UINT32 value from a UINT64 value.

Syntax

  #include <smsutapi.h> 
   
  CCODE SMDFDecrementUINT64 ( 
     UINT64  *term1, 
     UINT32   term2);
  

Parameters

term1

(IN/OUT) Points to the value of term1 on input. Points to the results of term1 - term2 on output.

term2

(IN) Specifies the amount term1 is to be decremented by.

Return Values

The following table lists the return values associated with the function.

0x00000000

Successful

0xFFFBFFF0

NWSMUT_BUFFER_UNDERFLOW

0xFFFBFFFA

NWSMUT_BUFFER_OVERFLOW

SMDFDecrementUINT64 Example

  UINT64 term1; 
  UINT32 term2 = 0xF; 
   
  SMDFPutUINT64(&term1, 0xFFF); 
  SMDFDecrementUINT64(&term1, term2);