Revision 36cd3069 libavutil/internal.h

View differences:

libavutil/internal.h
103 103

  
104 104
#    define av_abort()      do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)
105 105

  
106
extern const uint32_t inverse[256];
106
extern const uint32_t ff_inverse[256];
107 107

  
108 108
#if defined(ARCH_X86)
109 109
#    define FASTDIV(a,b) \
......
112 112
        asm volatile(\
113 113
            "mull %3"\
114 114
            :"=d"(ret),"=a"(dmy)\
115
            :"1"(a),"g"(inverse[b])\
115
            :"1"(a),"g"(ff_inverse[b])\
116 116
            );\
117 117
        ret;\
118 118
    })
......
123 123
        asm volatile(\
124 124
            "umull %1, %0, %2, %3"\
125 125
            :"=&r"(ret),"=&r"(dmy)\
126
            :"r"(a),"r"(inverse[b])\
126
            :"r"(a),"r"(ff_inverse[b])\
127 127
            );\
128 128
        ret;\
129 129
    })
130 130
#elif defined(CONFIG_FASTDIV)
131
#    define FASTDIV(a,b)   ((uint32_t)((((uint64_t)a)*inverse[b])>>32))
131
#    define FASTDIV(a,b)   ((uint32_t)((((uint64_t)a)*ff_inverse[b])>>32))
132 132
#else
133 133
#    define FASTDIV(a,b)   ((a)/(b))
134 134
#endif

Also available in: Unified diff