Home
last modified time | relevance | path

Searched refs:n_uword_bits (Results 1 – 4 of 4) sorted by relevance

/device/linaro/bootloader/edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/
Dudivmoddi4.c69 const unsigned n_uword_bits = sizeof(UINT32) * CHAR_BIT; in __udivmoddi4() local
147 if (sr > n_uword_bits - 2) in __udivmoddi4()
157 q.high = n.low << (n_uword_bits - sr); in __udivmoddi4()
160 r.low = (n.high << (n_uword_bits - sr)) | (n.low >> sr); in __udivmoddi4()
177 q.low = (n.high << (n_uword_bits - sr)) | (n.low >> sr); in __udivmoddi4()
183 sr = 1 + n_uword_bits + COUNT_LEADING_ZEROS(d.low) - COUNT_LEADING_ZEROS(n.high); in __udivmoddi4()
210 ((INT32)(n_uword_bits - sr) >> (n_uword_bits-1)); in __udivmoddi4()
211 q.high = ((n.low << ( n_uword_bits - sr)) & in __udivmoddi4()
212 ((INT32)(sr - n_uword_bits - 1) >> (n_uword_bits-1))) | in __udivmoddi4()
214 (n.low >> (sr - n_uword_bits))) & in __udivmoddi4()
[all …]
Dudivsi3.c69 const unsigned n_uword_bits = sizeof(UINT32) * CHAR_BIT; in __udivsi3() local
84 if (sr > n_uword_bits - 1) // d > r in __udivsi3()
86 if (sr == n_uword_bits - 1) // d == 1 in __udivsi3()
91 q = n << (n_uword_bits - sr); in __udivsi3()
97 r = (r << 1) | (q >> (n_uword_bits - 1)); in __udivsi3()
105 const INT32 s = (INT32)(d - r - 1) >> (n_uword_bits - 1); in __udivsi3()
/device/linaro/bootloader/arm-trusted-firmware/lib/compiler-rt/builtins/
Dudivmoddi4.c26 const unsigned n_uword_bits = sizeof(su_int) * CHAR_BIT; in __udivmoddi4() local
104 if (sr > n_uword_bits - 2) in __udivmoddi4()
114 q.s.high = n.s.low << (n_uword_bits - sr); in __udivmoddi4()
117 r.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
135 q.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
142 sr = 1 + n_uword_bits + __builtin_clz(d.s.low) - __builtin_clz(n.s.high); in __udivmoddi4()
147 if (sr == n_uword_bits) in __udivmoddi4()
154 else if (sr < n_uword_bits) // 2 <= sr <= n_uword_bits - 1 in __udivmoddi4()
157 q.s.high = n.s.low << (n_uword_bits - sr); in __udivmoddi4()
159 r.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
[all …]
/device/google/contexthub/firmware/lib/builtins/
Dudivmoddi4.c26 const unsigned n_uword_bits = sizeof(su_int) * CHAR_BIT; in __udivmoddi4() local
104 if (sr > n_uword_bits - 2) in __udivmoddi4()
114 q.s.high = n.s.low << (n_uword_bits - sr); in __udivmoddi4()
117 r.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
135 q.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
142 sr = 1 + n_uword_bits + __builtin_clz(d.s.low) - __builtin_clz(n.s.high); in __udivmoddi4()
147 if (sr == n_uword_bits) in __udivmoddi4()
154 else if (sr < n_uword_bits) // 2 <= sr <= n_uword_bits - 1 in __udivmoddi4()
157 q.s.high = n.s.low << (n_uword_bits - sr); in __udivmoddi4()
159 r.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4()
[all …]