Created
August 5, 2018 15:49
-
-
Save yairchu/730ee5fa0368758c7fe8050447c43016 to your computer and use it in GitHub Desktop.
IPP sqrt bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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