From 9bf8b496d611c482cd609b709164d7e7fb6e6756 Mon Sep 17 00:00:00 2001 From: Braedy Kuzma Date: Wed, 28 Aug 2019 18:20:09 -0600 Subject: [PATCH] Use commonly supported instruction mnemonic. --- modules/core/include/opencv2/core/fast_math.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/fast_math.hpp b/modules/core/include/opencv2/core/fast_math.hpp index 0e8187cac0..0fbb2804fe 100644 --- a/modules/core/include/opencv2/core/fast_math.hpp +++ b/modules/core/include/opencv2/core/fast_math.hpp @@ -102,7 +102,7 @@ #define CV_INLINE_ROUND_DBL(value) \ int out; \ 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; // FP32 also works with FP64 routine above