Skip to content

Instantly share code, notes, and snippets.

@yairchu
Created August 5, 2018 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yairchu/730ee5fa0368758c7fe8050447c43016 to your computer and use it in GitHub Desktop.
Save yairchu/730ee5fa0368758c7fe8050447c43016 to your computer and use it in GitHub Desktop.
IPP sqrt bug
#include <stdio.h>
#include "ipps.h"
int main()
{
float t;
(*(int*)&t) = 3116044;
printf ("%g %g\n", t, sqrtf (t));
IppStatus status = ippsSqrt_32f_I (&t, 1);
printf ("%g %d\n", t, status);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment