mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Use commonly supported instruction mnemonic.
This commit is contained in:
parent
8d0b3dad5c
commit
9bf8b496d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user