Commit f224d740 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #15414 from kuzi117:instr

parents 700f7a27 9bf8b496
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
#define CV_INLINE_ROUND_DBL(value) \ #define CV_INLINE_ROUND_DBL(value) \
int out; \ int out; \
double temp; \ double temp; \
__asm__( "fctiw %[temp],%[in]\n\tmffprwz %[out],%[temp]\n\t" : [out] "=r" (out), [temp] "=d" (temp) : [in] "d" ((double)(value)) : ); \ __asm__( "fctiw %[temp],%[in]\n\tmfvsrwz %[out],%[temp]\n\t" : [out] "=r" (out), [temp] "=d" (temp) : [in] "d" ((double)(value)) : ); \
return out; return out;
// FP32 also works with FP64 routine above // FP32 also works with FP64 routine above
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment