Source-Changes archive

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

CVS commit: src/sys



Module Name:    src
Committed By:   riastradh
Date:           Tue Aug 20 12:33:05 UTC 2019

Modified Files:
        src/sys/arch/amd64/include: param.h
        src/sys/arch/i386/include: param.h
        src/sys/sys: param.h

Log Message:
New macro ALIGNED_POINTER_LOAD.

To be used with ALIGNED_POINTER(p,t) instead of writing *(const t *)p
directly.  This way, on machines without strict alignment, we can use
memcpy to pacify sanitizers, while getting the same compiled code in
the end with a single (say) MOV instruction.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/amd64/include/param.h
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/i386/include/param.h
cvs rdiff -u -r1.609 -r1.610 src/sys/sys/param.h

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