language-c-0.9: Analysis and generation of C code
Safe HaskellNone
LanguageHaskell98

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