xcore / doc_tips_and_tricks

Other
5 stars 2 forks source link

sext is incorrect in the examples #2

Closed lilltroll77 closed 12 years ago

lilltroll77 commented 12 years ago

In the text it starts well regarding overflow and saturation overflow = sext(x,24) != x;

But in the later examples something else and incorrect is implemented.

A copy and paste from that text by a beginner would drive him crazy. Almost everything would overflow.

henkmuller commented 12 years ago

Thanks - corrected!