File: check_dfp_cap

package info (click to toggle)
valgrind 1:3.10.0-4~bpo7+1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 97,940 kB
  • sloc: ansic: 589,429; xml: 21,096; exp: 8,751; cpp: 7,366; asm: 6,526; perl: 5,656; sh: 5,334; makefile: 4,946; haskell: 195
file content (10 lines) | stat: -rwxr-xr-x 228 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# We use this script to check whether or not the processor supports Decimal Floating Point (DFP).

LD_SHOW_AUXV=1 /bin/true | grep  dfp > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
        exit 1
else
        exit 0
fi