This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/UCD3138: What is ABS means in TI UCD3138 PFC Code?

Part Number: UCD3138

Tool/software: Code Composer Studio

Hello ;

In UCD3138 PFC Code witch i Download form Power Factor Correction (PFC) Application Development kit . 

I frond a function, abs. I use CCS6.0 couldn't  find the  function define.

Could  someone answer me , Does it work?  How it work? Why i can't find the define?

Hear are some of the Code:

if(abs(iv.vin_squared_average -(iv.vin_squared_slow_average >> VRECT_SQUARED_SLOW_AVERAGE_SHIFT)) >(iv.vin_squared_slow_average >> (VRECT_SQUARED_SLOW_AVERAGE_SHIFT + 4)))