OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [bit_packed_array5.adb] - Rev 774

Go to most recent revision | Compare with Previous | Blame | View Log

-- { dg-do compile }
 
with System;
 
package body Bit_Packed_Array5 is
 
   function Inv (Word : Word_Type) return Word_Type is
      W : Word_Type := Word;
      pragma Volatile (W);
 
      A_W : constant System.Address := W'Address;
 
      V : Short_Bit_Array_Type;
      for V'Address use A_W;
      pragma Volatile (V);
   begin
      for I in V'Range loop
          V (I) := not V (I);
      end loop;
      return W;
   end;
 
end Bit_Packed_Array5;
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.