This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <sys/mman.h> | |
| int i386_cpuid_caches (size_t * data_caches) { | |
| int i; | |
| int num_data_caches = 0; | |
| for (i = 0; i < 32; i++) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /***************************************************************************** | |
| * #ident "Id: main.c,v 3.27 2002-01-06 16:23:01+02 rl Exp " | |
| * kaleido | |
| * | |
| * Kaleidoscopic construction of uniform polyhedra | |
| * Copyright (c) 1991-2002 Dr. Zvi Har'El <rl@math.technion.ac.il> | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | object LengauerTarjan { | |
| // Implement these three yourself | |
| def successors(v: Int): Iterable[Int] = ??? | |
| def predecessors(v: Int): Iterable[Int] = ??? | |
| def numNodes: Int = ??? | |
| // Lifted from "Modern Compiler Implementation in Java", 2nd ed. chapter 19.2 | |
| def computeDominatorTree(): Array[Int] = { | |
| var N = 0 |