Ignore:
Timestamp:
Jun 26, 2017, 6:45:41 PM (7 years ago)
Author:
ertl-honda
Message:

3.0.0のリリース版に追従

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_wo_tecs/trunk/kernel/time_event.c

    r302 r305  
    8585/*
    8686 *  タイムイベントヒープ操作マクロ
    87  *
    88  *  PARENTとCHILDの素直な定義は次の通りであるが,より実行効率の良いマク
    89  *  ロ定義としている.
    90  *  #define PARENT(p_tmevtn) (tmevt_heap + (((p_tmevtn) - tmevt_heap) >> 1))
    91  *  #define LCHILD(p_tmevtn) (tmevt_heap + (((p_tmevtn) - tmevt_heap) << 1))
    92  *
    93  *  下のPARENTの定義は,TMEVTNのé
    94 åˆ—が,sizeof(TMEVTN)の単位でアライン
    95  *  されていることを想定している.この前提が成立しない場合は,上の定義
    96  *  を使用するå¿
    97 è¦ãŒã‚る.
    98  */
    99 #define PARENT(p_tmevtn)                                /* 親ノードを求める */          \
    100                 ((TMEVTN *)(((((uintptr_t) tmevt_heap)                                          \
    101                                 + ((uintptr_t)(p_tmevtn))) >> 1) & ~(sizeof(TMEVTN) - 1)))
    102 #define LCHILD(p_tmevtn)                                /* 左の子ノードを求める */    \
    103                 ((TMEVTN *)((((uintptr_t)(p_tmevtn)) << 1) - ((uintptr_t) tmevt_heap)))
    104 
     87 */
     88#define PARENT(p_tmevtn)        (tmevt_heap + (((p_tmevtn) - tmevt_heap) >> 1))
     89                                                                                                        /* 親ノードを求める */
     90#define LCHILD(p_tmevtn)        (tmevt_heap + (((p_tmevtn) - tmevt_heap) << 1))
     91                                                                                                        /* 左の子ノードを求める */
    10592/*
    10693 *  タイムイベントヒープ中のå
Note: See TracChangeset for help on using the changeset viewer.