Use same comparison in both snippets
Add declaration of cblas_sdot in actual header