http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/arch/
The linked code is for the case when there's no arch-specific implementation.