Lines Matching refs:root

36  * Successive approximation of the equation (root + delta) ^ 2 = N
51 int32_t root = 0, tmp1, tmp2, tmp3, tmp4;
61 "or %[tmp4], %[root], %[tmp1] \n\t"
63 "movz %[root], %[tmp4], %[tmp2] \n\t"
66 "addu %[tmp1], %[tmp1], %[root] \n\t"
70 "ori %[tmp4], %[root], 0x8000 \n\t"
72 "movz %[root], %[tmp4], %[tmp2] \n\t"
75 "addu %[tmp1], %[tmp1], %[root] \n\t"
79 "ori %[tmp4], %[root], 0x4000 \n\t"
81 "movz %[root], %[tmp4], %[tmp2] \n\t"
84 "addu %[tmp1], %[tmp1], %[root] \n\t"
88 "ori %[tmp4], %[root], 0x2000 \n\t"
90 "movz %[root], %[tmp4], %[tmp2] \n\t"
93 "addu %[tmp1], %[tmp1], %[root] \n\t"
97 "ori %[tmp4], %[root], 0x1000 \n\t"
99 "movz %[root], %[tmp4], %[tmp2] \n\t"
102 "addu %[tmp1], %[tmp1], %[root] \n\t"
106 "ori %[tmp4], %[root], 0x800 \n\t"
108 "movz %[root], %[tmp4], %[tmp2] \n\t"
111 "addu %[tmp1], %[tmp1], %[root] \n\t"
115 "ori %[tmp4], %[root], 0x400 \n\t"
117 "movz %[root], %[tmp4], %[tmp2] \n\t"
120 "addu %[tmp1], %[tmp1], %[root] \n\t"
124 "ori %[tmp4], %[root], 0x200 \n\t"
126 "movz %[root], %[tmp4], %[tmp2] \n\t"
129 "addu %[tmp1], %[tmp1], %[root] \n\t"
133 "ori %[tmp4], %[root], 0x100 \n\t"
135 "movz %[root], %[tmp4], %[tmp2] \n\t"
138 "addu %[tmp1], %[tmp1], %[root] \n\t"
142 "ori %[tmp4], %[root], 0x80 \n\t"
144 "movz %[root], %[tmp4], %[tmp2] \n\t"
147 "addu %[tmp1], %[tmp1], %[root] \n\t"
151 "ori %[tmp4], %[root], 0x40 \n\t"
153 "movz %[root], %[tmp4], %[tmp2] \n\t"
156 "addu %[tmp1], %[tmp1], %[root] \n\t"
160 "ori %[tmp4], %[root], 0x20 \n\t"
162 "movz %[root], %[tmp4], %[tmp2] \n\t"
165 "addu %[tmp1], %[tmp1], %[root] \n\t"
169 "ori %[tmp4], %[root], 0x10 \n\t"
171 "movz %[root], %[tmp4], %[tmp2] \n\t"
174 "addu %[tmp1], %[tmp1], %[root] \n\t"
178 "ori %[tmp4], %[root], 0x8 \n\t"
180 "movz %[root], %[tmp4], %[tmp2] \n\t"
183 "addu %[tmp1], %[tmp1], %[root] \n\t"
187 "ori %[tmp4], %[root], 0x4 \n\t"
189 "movz %[root], %[tmp4], %[tmp2] \n\t"
192 "addu %[tmp1], %[tmp1], %[root] \n\t"
194 "ori %[tmp4], %[root], 0x2 \n\t"
195 "movz %[root], %[tmp4], %[tmp2] \n\t"
199 : [root] "+r" (root), [value] "+r" (value),
205 return root >> 1;