Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src/common/lib/libc/arch/aarch64/atomic



Module Name:    src
Committed By:   martin
Date:           Tue Jul  6 04:13:50 UTC 2021

Modified Files:
        src/common/lib/libc/arch/aarch64/atomic [netbsd-9]: atomic_nand_16.S
            atomic_nand_32.S atomic_nand_64.S atomic_nand_8.S

Log Message:
Pull up following revision(s) (requested by skrll in ticket #1314):

        common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S: revision 1.3
        common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S: revision 1.4
        common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S: revision 1.3
        common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S: revision 1.4
        common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S: revision 1.3
        common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S: revision 1.3
        common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S: revision 1.4

Fix the logic operation for atomic_nand_{8,16,32,64}

 From the gcc docs the operations are as follows
  { tmp = *ptr; *ptr = ~(tmp & value); return tmp; }   // nand
  { tmp = ~(*ptr & value); *ptr = tmp; return *ptr; }   // nand

yes, this is really rather strange.

typo in comment s/pte/ptr/


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.28.1 \
    src/common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S \
    src/common/lib/libc/arch/aarch64/atomic/atomic_nand_32.S \
    src/common/lib/libc/arch/aarch64/atomic/atomic_nand_64.S \
    src/common/lib/libc/arch/aarch64/atomic/atomic_nand_8.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index