Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stddef.h>
- #include <stdint.h>
- /*
- /data/software/venus-master/build/tmp/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/nodejs/22.15.0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/data/software/venus-master/build/tmp/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/nodejs/22.15.0/recipe-sysroot -O2 -c -o ldrd.o ldrd.c
- */
- void *ToWaitLocation(uint8_t *array_buffer, size_t addr)
- {
- return array_buffer + addr;
- }
- void WaitSync(void *isolate, uint8_t *array_buffer, size_t addr, int64_t value)
- {
- int64_t *wait_location = (int64_t *) ToWaitLocation(array_buffer, addr);
- value = __atomic_load_n(wait_location, __ATOMIC_SEQ_CST);
- }
- ----------------------------------------------------------------------------------------------------------
- Disassembly of section .text:
- 00000000 <ToWaitLocation>:
- 0: e0800001 add r0, r0, r1
- 4: e12fff1e bx lr
- 00000008 <WaitSync>:
- 8: f57ff05b dmb ish
- c: e18120d2 ldrd r2, [r1, r2]
- 10: f57ff05b dmb ish
- 14: e12fff1e bx lr
Advertisement
Add Comment
Please, Sign In to add comment