mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #15414 from kuzi117:instr
This commit is contained in:
commit
f224d740a3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user