language-c-0.9.4: Analysis and generation of C code
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.C.Analysis.ConstEval

Synopsis

Documentation

intExpr :: (Pos n, MonadName m) => n -> Integer -> m CExpr Source #

compSizeAndAlign Source #

Arguments

:: MonadTrav m 
=> MachineDesc 
-> CompTypeRef 
-> m (Integer, Integer)

(size, alignment)

roundToAlignment Source #

Arguments

:: Integer

The alignment

-> Integer

The value to align

-> Integer

The next multiple of alignment

Find the next multiple of an alignment