5 ! Contributed by James Van Buskirk
10 type, bind(C) :: CPUID_type
11 integer(C_INT32_T) eax
12 integer(C_INT32_T) ebx
13 integer(C_INT32_T) edx
14 integer(C_INT32_T) ecx
15 integer(C_INT32_T) bbb
17 type(CPUID_TYPE) result
18 result = transfer(achar(10)//achar(0)//achar(0)//achar(0)//'GenuineIntel'//'abcd',result)
20 if(( int(z'0000000A') /= result%eax &
21 .or. int(z'756E6547') /= result%ebx &
22 .or. int(z'49656E69') /= result%edx &
23 .or. int(z'6C65746E') /= result%ecx &
24 .or. int(z'64636261') /= result%bbb) &
26 ( int(z'0A000000') /= result%eax &
27 .or. int(z'47656E75') /= result%ebx &
28 .or. int(z'696E6549') /= result%edx &
29 .or. int(z'6E74656C') /= result%ecx &
30 .or. int(z'61626364') /= result%bbb)) then
31 write(*,'(5(z8.8:1x))') result