Fix for the out of bounds COS bug, boundry conditions are now covered.
Fix for the out of bounds COS bug, boundry conditions are now covered.

Change-Id: I13265dce7d6e09a631f47a44e32b41ccd425a800

01org/intel-cmt-cat,01org/intel-cmt-cat,01org/intel-cmt-cat