uint32_t i; uint32_t *array_ptr = &theArray[0]; uint32_t compareVal = 0x1234ABCD; bool validFlag = false; for (i=256; i!=0; i--) { if (compareVal == *array_ptr++) { validFlag = true; break; } } |
memcpy(array_ptr, &theuint64val, 8); |
*(array_ptr + 2) = theuint64val; *(array_ptr + 3) = theuint64val >> 8; *(array_ptr + 4) = theuint64val >> 16; *(array_ptr + 5) = theuint64val >> 24; *(array_ptr + 6) = theuint64val >> 32; *(array_ptr + 7) = theuint64val >> 40; *(array_ptr + 8) = theuint64val >> 48; *(array_ptr + 9) = theuint64val >> 56; |
memcpy(array_ptr, &theuint64val, 8); |
*(array_ptr + 2) = theuint64val; *(array_ptr + 3) = theuint64val >> 8; *(array_ptr + 4) = theuint64val >> 16; *(array_ptr + 5) = theuint64val >> 24; *(array_ptr + 6) = theuint64val >> 32; *(array_ptr + 7) = theuint64val >> 40; *(array_ptr + 8) = theuint64val >> 48; *(array_ptr + 9) = theuint64val >> 56; |
1000033c: ldr.w r0, [r2, #4]! 2 cycles 10000340: ldr r1, [sp, #12] 2 cycles 10000342: cmp r0, r1 1 cycle 10000344: beq.w 0x10000756 1 cycle 10000348: subs r3, #1 1 cycle 1000034a: bne.n 0x1000033c 1cycle |
1a004698: ldr.w r3, [r7, #144] ; 0x90 1a00469c: adds r2, r3, #4 1a00469e: str.w r2, [r7, #144] ; 0x90 1a0046a2: ldr r2, [r3, #0] 1a0046a4: ldr r3, [r7, #100] ; 0x64 1a0046a6: cmp r2, r3 1a0046a8: bne.n 0x1a0046b2 1a0046aa: movs r3, #1 1a0046ac: strb.w r3, [r7, #150] ; 0x96 1a0046b0: b.n 0x1a0046c4 1a0046b2: ldr.w r3, [r7, #152] ; 0x98 1a0046b6: subs r3, #1 1a0046b8: str.w r3, [r7, #152] ; 0x98 1a0046bc: ldr.w r3, [r7, #152] ; 0x98 1a0046c0: cmp r3, #0 1a0046c2: bne.n 0x1a004698 |
1000033c: ldr.w r0, [r2, #4]! 10000340: ldr r1, [sp, #12] 10000342: cmp r0, r1 10000344: beq.w 0x10000756 10000348: subs r3, #1 1000034a: bne.n 0x1000033c |