Home
last modified time | relevance | path

Searched refs:acc (Results 1 – 21 of 21) sorted by relevance

/device/google/contexthub/firmware/os/algos/calibration/accelerometer/
Daccel_cal.c158 static void accelCalAlgoInit(struct AccelCalAlgo *acc, uint32_t fx, in accelCalAlgoInit() argument
161 accelGoodDataInit(&acc->agd, fx, fxb, fy, fyb, fz, fzb, fle); in accelCalAlgoInit()
162 initKasa(&acc->akf); in accelCalAlgoInit()
166 void accelCalInit(struct AccelCal *acc, uint32_t t0, uint32_t n_s, float th, in accelCalInit() argument
170 accelCalAlgoInit(&acc->ac1[0], fx, fxb, fy, fyb, fz, fzb, fle); in accelCalInit()
171 accelCalAlgoInit(&acc->ac1[1], fx, fxb, fy, fyb, fz, fzb, fle); in accelCalInit()
174 accelStillInit(&acc->asd, t0, n_s, th); in accelCalInit()
178 memset(&acc->adf, 0, sizeof(struct AccelStatsMem)); in accelCalInit()
181 acc->x_bias = acc->y_bias = acc->z_bias = 0; in accelCalInit()
182 acc->x_bias_new = acc->y_bias_new = acc->z_bias_new = 0; in accelCalInit()
[all …]
Daccel_cal.h159 void accelCalRun(struct AccelCal *acc, uint64_t sample_time_nanos, float x,
169 void accelCalInit(struct AccelCal *acc, uint32_t t0, uint32_t n_s, float th,
173 void accelCalDestroy(struct AccelCal *acc);
176 bool accelCalUpdateBias(struct AccelCal *acc, float *x, float *y, float *z);
178 void accelCalBiasSet(struct AccelCal *acc, float x, float y, float z);
180 void accelCalBiasRemove(struct AccelCal *acc, float *x, float *y, float *z);
183 void accelCalDebPrint(struct AccelCal *acc, float temp);
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
Dstrtoimax.c63 intmax_t acc, cutoff; in __weak_alias() local
72 (void) &acc; (void) &cutoff; in __weak_alias()
129 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in __weak_alias()
141 if (acc < cutoff || (acc == cutoff && c > cutlim)) { in __weak_alias()
143 acc = INTMAX_MIN; in __weak_alias()
147 acc *= base; in __weak_alias()
148 acc -= c; in __weak_alias()
151 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in __weak_alias()
153 acc = INTMAX_MAX; in __weak_alias()
157 acc *= base; in __weak_alias()
[all …]
Dstrtoumax.c72 uintmax_t acc, cutoff; in __weak_alias() local
105 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in __weak_alias()
120 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in __weak_alias()
127 acc = UINTMAX_MAX; in __weak_alias()
132 acc *= (uintmax_t)base; in __weak_alias()
133 acc += c; in __weak_alias()
137 acc = (uintmax_t)(-((intmax_t)acc)); in __weak_alias()
140 return (acc); in __weak_alias()
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/
D_wcstol.h63 __wINT acc, cutoff; in _FUNCNAME() local
72 (void)&acc; (void)&cutoff; in _FUNCNAME()
120 for (acc = 0, any = 0;; wc = (wchar_t) *s++) { in _FUNCNAME()
129 if (acc < cutoff || (acc == cutoff && i > cutlim)) { in _FUNCNAME()
131 acc = __wINT_MIN; in _FUNCNAME()
135 acc *= base; in _FUNCNAME()
136 acc -= i; in _FUNCNAME()
139 if (acc > cutoff || (acc == cutoff && i > cutlim)) { in _FUNCNAME()
141 acc = __wINT_MAX; in _FUNCNAME()
145 acc *= base; in _FUNCNAME()
[all …]
D_wcstoul.h65 __wUINT acc, cutoff; in _FUNCNAME() local
109 for (acc = 0, any = 0;; wc = (wint_t) *s++) { in _FUNCNAME()
118 if (acc > cutoff || (acc == cutoff && i > cutlim)) { in _FUNCNAME()
120 acc = __wUINT_MAX; in _FUNCNAME()
124 acc *= (__wUINT)base; in _FUNCNAME()
125 acc += i; in _FUNCNAME()
129 acc = (__wUINT)(-((__wINT)acc)); in _FUNCNAME()
132 return (acc); in _FUNCNAME()
/device/google/accessory/demokit/firmware/demokit/
Ddemokit.pde43 AndroidAccessory acc("Google, Inc.",
136 acc.powerOn();
147 if (acc.isConnected()) {
148 int len = acc.read(msg, sizeof(msg), 1);
196 acc.write(msg, 3);
204 acc.write(msg, 3);
212 acc.write(msg, 3);
220 acc.write(msg, 3);
230 acc.write(msg, 3);
238 acc.write(msg, 3);
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dbase64.py217 acc = 0
223 acc += _b32rev[c] << shift
226 parts.append(binascii.unhexlify('%010x' % acc))
227 acc = 0
230 last = binascii.unhexlify('%010x' % acc)
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/
Darm_math.h5127 q63_t acc; in arm_pid_q31() local
5131 acc = (q63_t) S->A0 * in; in arm_pid_q31()
5134 acc += (q63_t) S->A1 * S->state[0]; in arm_pid_q31()
5137 acc += (q63_t) S->A2 * S->state[1]; in arm_pid_q31()
5140 out = (q31_t) (acc >> 31u); in arm_pid_q31()
5175 q63_t acc; in arm_pid_q15() local
5184 acc = (q31_t) __SMUAD(S->A0, in); in arm_pid_q15()
5188 acc = __SMLALD(S->A1, (q31_t) *vstate, acc); in arm_pid_q15()
5192 acc = ((q31_t) S->A0) * in; in arm_pid_q15()
5195 acc += (q31_t) S->A1 * S->state[0]; in arm_pid_q15()
[all …]
Dcore_cmSimd.h519 …_( ( always_inline ) ) __STATIC_INLINE uint64_t __SMLALD (uint32_t op1, uint32_t op2, uint64_t acc)
525 llr.w64 = acc;
536 …( ( always_inline ) ) __STATIC_INLINE uint64_t __SMLALDX (uint32_t op1, uint32_t op2, uint64_t acc)
542 llr.w64 = acc;
585 …_( ( always_inline ) ) __STATIC_INLINE uint64_t __SMLSLD (uint32_t op1, uint32_t op2, uint64_t acc)
591 llr.w64 = acc;
602 …( ( always_inline ) ) __STATIC_INLINE uint64_t __SMLSLDX (uint32_t op1, uint32_t op2, uint64_t acc)
608 llr.w64 = acc;
/device/linaro/bootloader/edk2/OvmfPkg/Library/QemuFwCfgLib/
DQemuFwCfgLib.inf21 FILE_GUID = fdd53716-31e1-4acc-9007-8bd5d877c96f
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dmathmodule.c431 double x2, acc, fk, result; in m_erf_series() local
435 acc = 0.0; in m_erf_series()
438 acc = 2.0 + x2 * acc / fk; in m_erf_series()
444 result = acc * x * exp(-x2) / sqrtpi; in m_erf_series()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dmathmodule.c431 double x2, acc, fk, result; in m_erf_series() local
435 acc = 0.0; in m_erf_series()
438 acc = 2.0 + x2 * acc / fk; in m_erf_series()
444 result = acc * x * exp(-x2) / sqrtpi; in m_erf_series()
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c461 struct AccelCal acc; member
1164 …accelCalNewBiasAvailable = accelCalUpdateBias(&mTask.acc, &accelCalBiasX, &accelCalBiasY, &accelCa…
2013 accelCalRun(&mTask.acc, rtc_time,
2016 accelCalBiasRemove(&mTask.acc, &x, &y, &z);
2776 accelCalBiasSet(&mTask.acc, values->sw[0], values->sw[1], values->sw[2]);
3685 accelCalInit(&mTask.acc,
3791 accelCalDestroy(&mTask.acc);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dlongobject.c1263 twodigits acc = (twodigits)a[i] << d | carry; in v_lshift() local
1264 z[i] = (digit)acc & PyLong_MASK; in v_lshift()
1265 carry = (digit)(acc >> PyLong_SHIFT); in v_lshift()
1282 twodigits acc = (twodigits)carry << PyLong_SHIFT | a[i]; in v_rshift() local
1283 carry = (digit)acc & mask; in v_rshift()
1284 z[i] = (digit)(acc >> d); in v_rshift()
Dtypeobject.c1461 pmerge(PyObject *acc, PyObject* to_merge) { in pmerge() argument
1504 ok = PyList_Append(acc, candidate); in pmerge()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Objects/
Dlongobject.c1263 twodigits acc = (twodigits)a[i] << d | carry; in v_lshift() local
1264 z[i] = (digit)acc & PyLong_MASK; in v_lshift()
1265 carry = (digit)(acc >> PyLong_SHIFT); in v_lshift()
1282 twodigits acc = (twodigits)carry << PyLong_SHIFT | a[i]; in v_rshift() local
1283 carry = (digit)acc & mask; in v_rshift()
1284 z[i] = (digit)(acc >> d); in v_rshift()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Objects/
Dlongobject.c1277 twodigits acc = (twodigits)a[i] << d | carry; in v_lshift() local
1278 z[i] = (digit)acc & PyLong_MASK; in v_lshift()
1279 carry = (digit)(acc >> PyLong_SHIFT); in v_lshift()
1296 twodigits acc = (twodigits)carry << PyLong_SHIFT | a[i]; in v_rshift() local
1297 carry = (digit)acc & mask; in v_rshift()
1298 z[i] = (digit)(acc >> d); in v_rshift()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
Dregparse.c4408 CClassNode* acc; in parse_char_class() local
4412 acc = NCCLASS(anode); in parse_char_class()
4413 r = or_cclass(cc, acc, env->enc); in parse_char_class()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dtypeobject.c1479 pmerge(PyObject *acc, PyObject* to_merge) { in pmerge() argument
1522 ok = PyList_Append(acc, candidate); in pmerge()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
Dpower.decTest180 -- The Vienna case. Checks both setup and 1/acc working precision