add the script I used to convert the FreeBSD code.

This commit is contained in:
christos 2024-01-24 04:14:07 +00:00
parent 5e0085c398
commit ff905cdb8e
1 changed files with 14 additions and 0 deletions

14
lib/libm/convertFreeBSD Executable file
View File

@ -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' \
"$@"