code: def _adjustFileAlignment(self, value, fileAlignment):
          
          if fileAlignment > consts.DEFAULT_FILE_ALIGNMENT:
              if not utils.powerOfTwo(fileAlignment):
                  print "Warning: FileAlignment is greater than DEFAULT_FILE_ALIGNMENT (0x200) and is not power of two."
          
          if fileAlignment < consts.DEFAULT_FILE_ALIGNMENT:
              return value
              
          if fileAlignment and value % fileAlignment:
              return ((value / fileAlignment) + 1) * fileAlignment
              
          return value
docs: Align a value to C{FileAligment}.
         
          @type value: int
          @param value: The value to align.
          
          @type fileAlignment: int
          @param fileAlignment: The value to be used to align the C{value} parameter.
          
          @rtype: int
          @return: The aligned value.