MCPcopy Create free account
hub / github.com/F-Stack/f-stack / atomic_fcmpset_64_i586

Function atomic_fcmpset_64_i586

freebsd/i386/include/atomic.h:499–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499static __inline int
500atomic_fcmpset_64_i586(volatile uint64_t *dst, uint64_t *expect, uint64_t src)
501{
502 u_char res;
503
504 __asm __volatile(
505 " " MPLOCKED " "
506 " cmpxchg8b %1 ; "
507 " sete %0"
508 : "=q" (res), /* 0 */
509 "+m" (*dst), /* 1 */
510 "+A" (*expect) /* 2 */
511 : "b" ((uint32_t)src), /* 3 */
512 "c" ((uint32_t)(src >> 32)) /* 4 */
513 : "memory", "cc");
514 return (res);
515}
516
517static __inline uint64_t
518atomic_load_acq_64_i586(volatile uint64_t *p)

Callers 1

atomic_fcmpset_64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected