Module Name: src Committed By: christos Date: Wed Jan 24 04:14:07 UTC 2024
Added Files: src/lib/libm: convertFreeBSD Log Message: add the script I used to convert the FreeBSD code. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/lib/libm/convertFreeBSD Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Added files: Index: src/lib/libm/convertFreeBSD diff -u /dev/null src/lib/libm/convertFreeBSD:1.1 --- /dev/null Tue Jan 23 23:14:07 2024 +++ src/lib/libm/convertFreeBSD Tue Jan 23 23:14:07 2024 @@ -0,0 +1,14 @@ +#!/bin/sh +# simple script to do some of the mechanical conversion from the FreeBSD +# sources +sed -i \ + -e 's/IEEEl2bits/ieee_ext_u/g' \ + -e 's/bits.man/extu_frac/g' \ + -e 's/\.\<e\>/\.extu_ld/g' \ + -e 's/LDBL_MANH_SIZE/EXT_FRACHBITS/g' \ + -e 's/LDBL_MANL_SIZE/EXT_FRACLBITS/g' \ + -e 's/u.xbits.expsign/GET_EXPSIGN(\&u)/g' \ + -e 's/bits.exp/extu_exp/g' \ + -e 's/bits.sign/extu_sign/g' \ + "$@" +