#!/bin/sh
k=$1
for j in float double ldouble float128; do echo $j; for i in `find /usr/src/libc -name libm-test-ulps`; do sed -n '/^Function: "'$k'"/,/^$/p' $i | grep "^$j:" | awk '{printf "%d %s\n", $2, "'$i'"}'; done | sort -u | sort -n; done
echo frounding-math
for j in float double ldouble float128; do echo $j; for i in `find /usr/src/libc -name libm-test-ulps`; do sed -n '/^Function: "'$k'_/,/^$/p' $i | grep "^$j:" | awk '{printf "%d %s\n", $2, "'$i'"}'; done | sort -u | sort -n; done
