Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / test / cg / tm128.pp
Size: Mime:
{$ASSERTIONS ON}
{$packrecords c}
{$push}
{$codealign recordmin=16}

type
  tm128 = record
    case byte of
      1 : (m128_f32 : array[0..3] of single;)
  end;
{$pop}

type
  tm128_unaligned = record
    case byte of
      1 : (m128_f32 : array[0..3] of single;)
  end;


var
  tr1 : record
    b : byte;
    m128 : tm128;
  end;
  tr1_unaligned : record
    b : byte;
    m128_unaligned : tm128_unaligned;
  end;
  d : double;

begin
  assert((sizeof(tm128))=16);
  assert((ptruint(@tr1.m128) mod 16)=0);
  assert((ptruint(@tr1_unaligned.m128_unaligned)-ptruint(@tr1_unaligned.b))=4);
end.