Changeset 459 for trunk/kernel/libk


Ignore:
Timestamp:
Aug 13, 2018, 1:43:20 PM (6 years ago)
Author:
alain
Message:

Introduce the math library, to support the floating point
data used by the multi-thread fft application.
Fix several bugs regarding the FPU context save/restore.
Introduce support for the %f format in printf.

Location:
trunk/kernel/libk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/htab.h

    r457 r459  
    22 * htab.h - Generic embedded hash table definition.
    33 *
    4  * Authors  Alain Greiner (2016,2017)
     4 * Authors  Alain Greiner (2016,2017,2018)
    55 *
    66 * Copyright (c) UPMC Sorbonne Universites
     
    4242// - From the pointer on <key>, we use an item type specific htab_index() function,
    4343//   to compute an <index> value, defining a subset of registered items.
    44 // - As several items can have the same <index>, we use the item type specific defined
     44// - As several items can have the same <index>, we use the item type specific
    4545//   htab_scan() function for a final associative search on the subset.
    4646// - Each registered item is a structure, that must contain an embedded list_entry_t,
  • trunk/kernel/libk/xhtab.h

    r457 r459  
    22 * xhtab.h - Remote access embedded hash table definition.
    33 *
    4  * Author     Alain Greiner  (2016,2017)
     4 * Author     Alain Greiner  (2016,2017,2018)
    55 *
    66 * Copyright (c) UPMC Sorbonne Universites
     
    5454//
    5555// Implementation Note:
    56 // For each supported item type ***, you must define four item-type-specific
     56// To inroduce a new item type, you must define the four item-type-specific
    5757// functions specified below, and you must update the xhtab_init() function
    5858// and the xhtab_item_type_t.
     
    8282
    8383/******************************************************************************************
    84  * This structure define the root of the remote accessible hash table.
     84 * This structure define the root of the remotely accessible hash table.
    8585 *****************************************************************************************/
    8686
     
    124124 * This function safely remove an item from the hash table, using the lock protecting it.
    125125 ******************************************************************************************
    126  * @ xhtab_xp       : extended pointer on hash table.
    127  * @ key            : local pointer on item identifier.
    128  * @ xlist_entry_xp : extended pointer on xlist_entry embedded in item to be removed.
     126 * @ xhtab_xp   : extended pointer on hash table.
     127 * @ key        : local pointer on item identifier.
     128 * @ xlist_xp  : extended pointer on xlist_entry embedded in item to be removed.
    129129 * @ return 0 if success / return EINVAL if item not found.
    130130 *****************************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.