⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gui__divideround.lst

📁 Keil C下通过的UCGUI,UCGUI的移植源代码
💻 LST
字号:
C51 COMPILER V8.05a   GUI__DIVIDEROUND                                                     04/11/2008 14:18:24 PAGE 1   


C51 COMPILER V8.05a, COMPILATION OF MODULE GUI__DIVIDEROUND
OBJECT MODULE PLACED IN GUI__DivideRound.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI__DivideRound.c LARGE BROWSE MDU_F120 DEBUG OBJEC
                    -TEXTEND PRINT(.\GUI__DivideRound.lst) OBJECT(GUI__DivideRound.obj)

line level    source

   1          /*
   2          *********************************************************************************************************
   3          *                                                uC/GUI
   4          *                        Universal graphic software for embedded applications
   5          *
   6          *                       (c) Copyright 2002, Micrium Inc., Weston, FL
   7          *                       (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
   8          *
   9          *              礐/GUI is protected by international copyright laws. Knowledge of the
  10          *              source code may not be used to write a similar product. This file may
  11          *              only be used in accordance with a license and should not be redistributed
  12          *              in any way. We appreciate your understanding and fairness.
  13          *
  14          ----------------------------------------------------------------------
  15          File        : GUI__DivideRound.C
  16          Purpose     : Implementation of GUI__DivideRound
  17          ---------------------------END-OF-HEADER------------------------------
  18          */
  19          
  20          #include "gui\Core\GUI_Protected.h"
  21          
  22          /*********************************************************************
  23          *
  24          *       Public code
  25          *
  26          **********************************************************************
  27          */
  28          
  29          
  30          /*********************************************************************
  31          *
  32          *       GUI__DivideRound
  33          
  34            This routine is used internally for computations. Primary goal is
  35            to minimize the effects of rounding which occur if we simply
  36            divide.
  37          */
  38          int GUI__DivideRound(int a, int b) {
  39   1        int r = 0;
  40   1        if (b) {
  41   2          r = ((a +b/2) / b);
  42   2        }
  43   1        return r;
  44   1      }
  45          
  46          
  47          
  48          
  49          
  50          
  51          
  52          
  53          
  54          
C51 COMPILER V8.05a   GUI__DIVIDEROUND                                                     04/11/2008 14:18:24 PAGE 2   

  55          
  56          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     44    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -